mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-27 01:17:22 +02:00
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,
|
once: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("MOZCENTRAL")) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
_boundEvents.removeWindowResolutionChange ||= function () {
|
_boundEvents.removeWindowResolutionChange ||= function () {
|
||||||
mediaQueryList.removeEventListener("change", addWindowResolutionChange);
|
mediaQueryList.removeEventListener("change", addWindowResolutionChange);
|
||||||
_boundEvents.removeWindowResolutionChange = null;
|
_boundEvents.removeWindowResolutionChange = null;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user