Skip to content

Commit

Permalink
happy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
illnesse committed Nov 13, 2023
1 parent a818d49 commit 3194d28
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/handleKeyEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@ export function handleKeyEvent(

case "toggleFullscreen":
const div = document.getElementById("shorts-player");
if (!div) return;
if (document.fullscreenElement == div) document.exitFullscreen();
if (div.requestFullscreen) div.requestFullscreen();
else if (div.webkitRequestFullscreen) div.webkitRequestFullscreen();
else if (div.msRequestFullScreen) div.msRequestFullScreen();
break;

case "numPadSeek":
Expand Down

0 comments on commit 3194d28

Please sign in to comment.