mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
[Firefox] Fetch browser preferences/options together with the viewer preferences (bug 1862192)
Currently we *synchronously* fetch a number of browser preferences/options, from the platform code, during the viewer respectively PDF document initialization paths. This seems unnecessary, and we can re-factor the code to instead include the relevant data when fetching the regular viewer preferences.
This commit is contained in:
parent
50c0fccda6
commit
eebc230cf1
7 changed files with 109 additions and 81 deletions
|
@ -352,7 +352,7 @@ class ChromePreferences extends BasePreferences {
|
|||
defaultPrefs = this.defaults;
|
||||
}
|
||||
storageArea.get(defaultPrefs, function (readPrefs) {
|
||||
resolve(readPrefs);
|
||||
resolve({ prefs: readPrefs });
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue