From 5282ceeca580eac71a69fb0340bd0fe3e21dd7a3 Mon Sep 17 00:00:00 2001 From: Andrew S Date: Mon, 7 Oct 2024 02:46:58 -0500 Subject: [PATCH] Fix fullscreen exit after auto next --- chrome/player/ui/InterfaceController.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/player/ui/InterfaceController.mjs b/chrome/player/ui/InterfaceController.mjs index ee763c4c..2f9923bc 100644 --- a/chrome/player/ui/InterfaceController.mjs +++ b/chrome/player/ui/InterfaceController.mjs @@ -1023,7 +1023,7 @@ export class InterfaceController { async fullscreenToggle(force) { if (document.fullscreenEnabled) { - const newValue = force === undefined ? document.fullscreenElement !== document.documentElement : force; + const newValue = force === undefined ? !document.fullscreenElement : force; if (newValue) { await document.documentElement.requestFullscreen(); } else if (document.exitFullscreen && document.fullscreenElement) {