diff --git a/web/app.js b/web/app.js index f3d0635007775..6251399cf7cb6 100644 --- a/web/app.js +++ b/web/app.js @@ -133,44 +133,42 @@ let PDFViewerApplication = { contentDispositionFilename: null, // Called once when the document is loaded. - initialize(appConfig) { + async initialize(appConfig) { this.preferences = this.externalServices.createPreferences(); this.appConfig = appConfig; - return this._readPreferences().then(() => { - return this._parseHashParameters(); - }).then(() => { - return this._initializeL10n(); - }).then(() => { - if (this.isViewerEmbedded && - AppOptions.get('externalLinkTarget') === LinkTarget.NONE) { - // Prevent external links from "replacing" the viewer, - // when it's embedded in e.g. an