diff --git a/web/app.js b/web/app.js index ab58e0a29..a34449fe8 100644 --- a/web/app.js +++ b/web/app.js @@ -2424,9 +2424,9 @@ function webViewerHashchange(evt) { } } -let webViewerFileInputChange, webViewerOpenFile; if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) { - webViewerFileInputChange = function (evt) { + // eslint-disable-next-line no-var + var webViewerFileInputChange = function (evt) { if (PDFViewerApplication.pdfViewer?.isInPresentationMode) { return; // Opening a new PDF file isn't supported in Presentation Mode. } @@ -2439,7 +2439,8 @@ if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) { PDFViewerApplication.open(url); }; - webViewerOpenFile = function (evt) { + // eslint-disable-next-line no-var + var webViewerOpenFile = function (evt) { const fileInput = PDFViewerApplication.appConfig.openFileInput; fileInput.click(); };