Merge pull request #17865 from Snuffleupagus/pr-17767-followup

Remove the `addWindowResolutionChange` listener unconditionally (PR 17767 follow-up)
This commit is contained in:
Jonas Jenwald 2024-04-01 18:55:07 +02:00 committed by GitHub
commit 3b87c31abb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;