Skip to content

Commit

Permalink
Revert "Don't listen for window resolution changes in old browsers (P…
Browse files Browse the repository at this point in the history
…R 15319 follow-up)"
  • Loading branch information
Snuffleupagus authored Sep 27, 2022
1 parent 5675a6e commit 4c7a03c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1979,13 +1979,6 @@ const PDFViewerApplication = {
const mediaQueryList = window.matchMedia(
`(resolution: ${window.devicePixelRatio || 1}dppx)`
);
if (
typeof PDFJSDev !== "undefined" &&
PDFJSDev.test("GENERIC && !SKIP_BABEL") &&
typeof mediaQueryList.addEventListener !== "function"
) {
return; // Not supported in Safari<14.
}
mediaQueryList.addEventListener("change", addWindowResolutionChange, {
once: true,
});
Expand Down

0 comments on commit 4c7a03c

Please sign in to comment.