diff --git a/web/app.js b/web/app.js index 1cb736937..028f0b146 100644 --- a/web/app.js +++ b/web/app.js @@ -2007,6 +2007,8 @@ const PDFViewerApplication = { eventBus._on("openfile", webViewerOpenFile); } if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("MOZCENTRAL")) { + // The `unbindEvents` method is unused in MOZCENTRAL builds, + // hence we don't need to unregister these event listeners. eventBus._on( "annotationeditorstateschanged", webViewerAnnotationEditorStatesChanged @@ -2140,9 +2142,6 @@ const PDFViewerApplication = { eventBus._off("fileinputchange", webViewerFileInputChange); eventBus._off("openfile", webViewerOpenFile); } - if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("MOZCENTRAL")) { - eventBus._off("reporttelemetry", webViewerReportTelemetry); - } _boundEvents.beforePrint = null; _boundEvents.afterPrint = null;