diff --git a/public/script/leaflet-fullscreen.js b/public/script/leaflet-fullscreen.js index 12cb368..b4e40b9 100644 --- a/public/script/leaflet-fullscreen.js +++ b/public/script/leaflet-fullscreen.js @@ -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()