Skip to content

Commit

Permalink
remove obsolete fullscreenElement vendor prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Stassi committed Nov 13, 2024
1 parent 9d17220 commit 18a2aa8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions public/script/leaflet-fullscreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,7 @@ export function fullscreenMap({
const container = map.getContainer(),
fullscreen = getFullscreen()

if (
container ===
(document.fullscreenElement ||
document.mozFullScreenElement ||
document.webkitFullscreenElement ||
document.msFullscreenElement)
) {
if (container === document.fullscreenElement) {
if (!fullscreen) {
toggleFullscreen()

Expand Down

0 comments on commit 18a2aa8

Please sign in to comment.