Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sk66641 committed May 26, 2024
1 parent 5834900 commit 5596cb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
document.body.addEventListener("click", () => {
document.getElementById("screen").addEventListener("click", () => {
if (document.fullscreenElement || document.webkitFullscreenElement || document.mozFullScreenElement || document.msFullscreenElement) {
document.exitFullscreen();
document.getElementById("screen").innerHTML = "Enable Fullscreen";
Expand Down

0 comments on commit 5596cb2

Please sign in to comment.