Merge pull request #17014 from Snuffleupagus/reporttelemetry-tweaks
Don't bother trying to unregister the "reporttelemetry" event listener
This commit is contained in:
commit
a68845c902
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user