mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Merge pull request #18470 from Snuffleupagus/move-Preferences-init
Move the `Preferences` initialization as early as possible
This commit is contained in:
commit
9f62c0f139
1 changed files with 1 additions and 2 deletions
|
@ -139,7 +139,7 @@ const PDFViewerApplication = {
|
||||||
/** @type {OverlayManager} */
|
/** @type {OverlayManager} */
|
||||||
overlayManager: null,
|
overlayManager: null,
|
||||||
/** @type {Preferences} */
|
/** @type {Preferences} */
|
||||||
preferences: null,
|
preferences: new Preferences(),
|
||||||
/** @type {Toolbar} */
|
/** @type {Toolbar} */
|
||||||
toolbar: null,
|
toolbar: null,
|
||||||
/** @type {SecondaryToolbar} */
|
/** @type {SecondaryToolbar} */
|
||||||
|
@ -638,7 +638,6 @@ const PDFViewerApplication = {
|
||||||
},
|
},
|
||||||
|
|
||||||
async run(config) {
|
async run(config) {
|
||||||
this.preferences = new Preferences();
|
|
||||||
await this.initialize(config);
|
await this.initialize(config);
|
||||||
|
|
||||||
const { appConfig, eventBus } = this;
|
const { appConfig, eventBus } = this;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue