mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Ensure that the viewer loads even if there are errors when the preferences are read
This commit is contained in:
parent
42ed9025ef
commit
159e86f7ab
2 changed files with 7 additions and 7 deletions
|
@ -45,11 +45,11 @@ var HandTool = {
|
|||
toggleHandTool.addEventListener('click', this.toggle.bind(this), false);
|
||||
|
||||
window.addEventListener('localized', function (evt) {
|
||||
Preferences.get('enableHandToolOnLoad').then(function (prefValue) {
|
||||
if (prefValue) {
|
||||
Preferences.get('enableHandToolOnLoad').then(function resolved(value) {
|
||||
if (value) {
|
||||
this.handTool.activate();
|
||||
}
|
||||
}.bind(this));
|
||||
}.bind(this), function rejected(reason) {});
|
||||
}.bind(this));
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue