We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35cf042 commit 9e41defCopy full SHA for 9e41def
1 file changed
plugins/NativeFullscreen/src/index.ts
@@ -32,7 +32,7 @@ const onKeyDown = (event: KeyboardEvent) => {
32
33
if (document.fullscreenElement || wimp?.classList.contains("is-fullscreen")) {
34
// Exiting fullscreen
35
- document.exitFullscreen();
+ if (document.fullscreenElement) document.exitFullscreen();
36
if (wimp) wimp.classList.remove("is-fullscreen");
37
if (!storage.hideTopBar) setTopBarVisibility(true);
38
if (contentContainer) contentContainer.style.maxHeight = "";
0 commit comments