From 18a2aa8e445d1de151a56cfb4d279a3a96fb3149 Mon Sep 17 00:00:00 2001 From: Andreas Stassivik Date: Wed, 13 Nov 2024 03:06:28 -0800 Subject: [PATCH] remove obsolete `fullscreenElement` vendor prefixes --- public/script/leaflet-fullscreen.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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()