Skip to content

Commit

Permalink
Full screen button fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dosinis committed Dec 3, 2024
1 parent 8963319 commit 2589f87
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
var canvas = document.querySelector("#unity-canvas");
var loadingBar = document.querySelector("#unity-loading-bar");
var progressBarFull = document.querySelector("#unity-progress-bar-full");
var fullscreenButton = document.querySelector("#unity-fullscreen-button");
//var fullscreenButton = document.querySelector("#unity-fullscreen-button");
var warningBanner = document.querySelector("#unity-warning");

// Shows a temporary message banner/ribbon for a few seconds, or
Expand Down Expand Up @@ -107,9 +107,9 @@
progressBarFull.style.width = 100 * progress + "%";
}).then((unityInstance) => {
loadingBar.style.display = "none";
fullscreenButton.onclick = () => {
unityInstance.SetFullscreen(1);
};
//fullscreenButton.onclick = () => {
// unityInstance.SetFullscreen(1);
//};
}).catch((message) => {
alert(message);
});
Expand Down

0 comments on commit 2589f87

Please sign in to comment.