Skip to content

Commit

Permalink
Merge pull request #18470 from Snuffleupagus/move-Preferences-init
Browse files Browse the repository at this point in the history
Move the `Preferences` initialization as early as possible
  • Loading branch information
timvandermeij authored Jul 21, 2024
2 parents e92a6a1 + f8aa15a commit 9f62c0f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const PDFViewerApplication = {
/** @type {OverlayManager} */
overlayManager: null,
/** @type {Preferences} */
preferences: null,
preferences: new Preferences(),
/** @type {Toolbar} */
toolbar: null,
/** @type {SecondaryToolbar} */
Expand Down Expand Up @@ -638,7 +638,6 @@ const PDFViewerApplication = {
},

async run(config) {
this.preferences = new Preferences();
await this.initialize(config);

const { appConfig, eventBus } = this;
Expand Down

0 comments on commit 9f62c0f

Please sign in to comment.