Skip to content

Commit

Permalink
Fix conditional check for isFullscreen to accommodate Safari (#11086)
Browse files Browse the repository at this point in the history
  • Loading branch information
avpeery authored Oct 5, 2021
1 parent d33f124 commit c13e5ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/handler/scroll_zoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ class ScrollZoomHandler {
}

_isFullscreen() {
return window.document.fullscreenElement !== null;
return !!window.document.fullscreenElement;
}

_showBlockerAlert() {
Expand Down

0 comments on commit c13e5ce

Please sign in to comment.