diff --git a/web/app.js b/web/app.js index 69a155a64..1435a4687 100644 --- a/web/app.js +++ b/web/app.js @@ -1423,7 +1423,10 @@ const PDFViewerApplication = { pdfViewer.optionalContentConfigPromise.then(optionalContentConfig => { this.pdfLayerViewer.render({ optionalContentConfig, pdfDocument }); }); - if ("requestIdleCallback" in window) { + if ( + (typeof PDFJSDev !== "undefined" && PDFJSDev.test("MOZCENTRAL")) || + "requestIdleCallback" in window + ) { const callback = window.requestIdleCallback( () => { this._collectTelemetry(pdfDocument);