diff --git a/web/app.js b/web/app.js index ccc6b371d..54aafeaa6 100644 --- a/web/app.js +++ b/web/app.js @@ -1531,6 +1531,13 @@ const PDFViewerApplication = { * @private */ async _initializePageLabels(pdfDocument) { + if ( + typeof PDFJSDev === "undefined" + ? window.isGECKOVIEW + : PDFJSDev.test("GECKOVIEW") + ) { + return; + } const labels = await pdfDocument.getPageLabels(); if (pdfDocument !== this.pdfDocument) {