From a8c7e587732d571e5d6ea600daf5cd2180cc9532 Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Mon, 16 Sep 2024 17:16:53 +0200 Subject: [PATCH] fix: remove unsupported argument (remove since Chrome 70+) Signed-off-by: Maksim Sukharev --- src/composables/useDocumentFullscreen.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/composables/useDocumentFullscreen.ts b/src/composables/useDocumentFullscreen.ts index 9cafd85410f..0abd203c9ed 100644 --- a/src/composables/useDocumentFullscreen.ts +++ b/src/composables/useDocumentFullscreen.ts @@ -7,10 +7,6 @@ import { createSharedComposable } from '@vueuse/core' import { readonly, ref, onBeforeMount, onBeforeUnmount } from 'vue' import type { Ref, DeepReadonly } from 'vue' -interface WebkitElement extends Element { - ALLOW_KEYBOARD_INPUT: FullscreenOptions; -} - /** * Composable to check whether the page is displayed at fullscreen * @return {DeepReadonly>} - computed boolean whether the page is displayed at fullscreen @@ -45,7 +41,7 @@ export async function enableFullscreen() { if (element.requestFullscreen) { await element.requestFullscreen() } else if (element.webkitRequestFullscreen) { - await element.webkitRequestFullscreen((Element as unknown as WebkitElement).ALLOW_KEYBOARD_INPUT) + await element.webkitRequestFullscreen() } }