Skip to content

Commit 9e41def

Browse files
BrsktInrixia
authored andcommitted
Fix exitFullscreen error in Tidal windowed mode
Only call exitFullscreen when in native fullscreen mode
1 parent 35cf042 commit 9e41def

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/NativeFullscreen/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const onKeyDown = (event: KeyboardEvent) => {
3232

3333
if (document.fullscreenElement || wimp?.classList.contains("is-fullscreen")) {
3434
// Exiting fullscreen
35-
document.exitFullscreen();
35+
if (document.fullscreenElement) document.exitFullscreen();
3636
if (wimp) wimp.classList.remove("is-fullscreen");
3737
if (!storage.hideTopBar) setTopBarVisibility(true);
3838
if (contentContainer) contentContainer.style.maxHeight = "";

0 commit comments

Comments
 (0)