resolved merge conflict and inGame boolean now functions as intended

This commit is contained in:
MonkeyGG2
2023-09-08 21:15:39 -04:00
5 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ function setup() {
Draw
--------------------*/
let inGame = true;
let inGame = false;
function draw() {
if (!inGame && document.visibilityState == "visible") {
time++;
+1
View File
@@ -23,6 +23,7 @@ fetch("./game-info.jsonc").then((e) => e.text()).then((jsonc) => {
$("#gamesList li").on("click", function() {
let url = $(this).attr("url");
inGame = true;
$("#everything-else").fadeOut();
$("#page-loader").fadeIn();
$("#page-loader iframe")[0].src = url;