Merge pull request #17865 from Snuffleupagus/pr-17767-followup
Remove the `addWindowResolutionChange` listener unconditionally (PR 17767 follow-up)
This commit is contained in:
commit
3b87c31abb
@ -1915,9 +1915,6 @@ const PDFViewerApplication = {
|
||||
once: true,
|
||||
});
|
||||
|
||||
if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("MOZCENTRAL")) {
|
||||
return;
|
||||
}
|
||||
_boundEvents.removeWindowResolutionChange ||= function () {
|
||||
mediaQueryList.removeEventListener("change", addWindowResolutionChange);
|
||||
_boundEvents.removeWindowResolutionChange = null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user