diff --git a/web/app.js b/web/app.js index 67d071f4c..933d9eba7 100644 --- a/web/app.js +++ b/web/app.js @@ -635,8 +635,6 @@ let PDFViewerApplication = { if (this.pdfLoadingTask) { // We need to destroy already opened document. return this.close().then(() => { - // Reload the preferences if a document was previously opened. - this.preferences.reload(); // ... and repeat the open() call. return this.open(file, args); }); diff --git a/web/preferences.js b/web/preferences.js index fb535cad6..6d257d55d 100644 --- a/web/preferences.js +++ b/web/preferences.js @@ -99,21 +99,6 @@ class BasePreferences { }); } - /** - * Replace the current preference values with the ones from storage. - * @return {Promise} A promise that is resolved when the preference values - * have been updated. - */ - reload() { - return this._initializedPromise.then(() => { - return this._readFromStorage(this.defaults); - }).then((prefObj) => { - if (prefObj) { - this.prefs = prefObj; - } - }); - } - /** * Set the value of a preference. * @param {string} name The name of the preference that should be changed.