From e2ab86523041855f4c070ed143a4d6d0c44dfe70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Thu, 28 Nov 2024 17:11:06 +0100 Subject: [PATCH] pl-fe: remove mozRequestFullScreen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- packages/pl-fe/src/features/ui/util/fullscreen.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/packages/pl-fe/src/features/ui/util/fullscreen.ts b/packages/pl-fe/src/features/ui/util/fullscreen.ts index 389dd0817..5eddf60e6 100644 --- a/packages/pl-fe/src/features/ui/util/fullscreen.ts +++ b/packages/pl-fe/src/features/ui/util/fullscreen.ts @@ -4,9 +4,7 @@ const isFullscreen = (): boolean => Boolean( document.fullscreenElement || // @ts-ignore - document.webkitFullscreenElement || - // @ts-ignore - document.mozFullScreenElement, + document.webkitFullscreenElement, ); const exitFullscreen = (): void => { @@ -15,9 +13,6 @@ const exitFullscreen = (): void => { } else if ('webkitExitFullscreen' in document) { // @ts-ignore document.webkitExitFullscreen(); - } else if ('mozCancelFullScreen' in document) { - // @ts-ignore - document.mozCancelFullScreen(); } }; @@ -27,9 +22,6 @@ const requestFullscreen = (el: Element): void => { } else if ('webkitRequestFullscreen' in el) { // @ts-ignore el.webkitRequestFullscreen(); - } else if ('mozRequestFullScreen' in el) { - // @ts-ignore - el.mozRequestFullScreen(); } };