Skip to content

Commit

Permalink
Fix fullscreen exit after auto next
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrews54757 committed Oct 7, 2024
1 parent cb6cddb commit 5282cee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chrome/player/ui/InterfaceController.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5282cee

Please sign in to comment.