diff --git a/web/genericcom.js b/web/genericcom.js index 754f4f6e9bc63..29d131c5bad25 100644 --- a/web/genericcom.js +++ b/web/genericcom.js @@ -24,7 +24,7 @@ if (typeof PDFJSDev !== 'undefined' && !PDFJSDev.test('GENERIC')) { 'GENERIC build.'); } -var GenericCom = {}; +let GenericCom = {}; class GenericPreferences extends BasePreferences { _writeToStorage(prefObj) { @@ -36,13 +36,13 @@ class GenericPreferences extends BasePreferences { _readFromStorage(prefObj) { return new Promise(function(resolve) { - var readPrefs = JSON.parse(localStorage.getItem('pdfjs.preferences')); + let readPrefs = JSON.parse(localStorage.getItem('pdfjs.preferences')); resolve(readPrefs); }); } } -var GenericExternalServices = Object.create(DefaultExternalServices); +let GenericExternalServices = Object.create(DefaultExternalServices); GenericExternalServices.createDownloadManager = function() { return new DownloadManager(); }; diff --git a/web/genericl10n.js b/web/genericl10n.js index cc3b7cc85d91c..6c0dcfb67374a 100644 --- a/web/genericl10n.js +++ b/web/genericl10n.js @@ -15,7 +15,7 @@ import '../external/webL10n/l10n'; -var webL10n = document.webL10n; +let webL10n = document.webL10n; class GenericL10n { constructor(lang) {