Skip to content

Commit

Permalink
Merge pull request #15515 from mozilla/revert-15418-pr-15319-followup
Browse files Browse the repository at this point in the history
Revert "Don't listen for window resolution changes in old browsers (PR 15319 follow-up)"
  • Loading branch information
Snuffleupagus authored Sep 30, 2022
2 parents 0011a74 + 4c7a03c commit 1ee096d
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 1ee096d

Please sign in to comment.