From ad13554843c0fe62f3150b187f578cdbc956161c Mon Sep 17 00:00:00 2001 From: Sakimori Date: Wed, 30 Dec 2020 03:38:20 -0500 Subject: [PATCH] fixed #70 --- static/loader.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/static/loader.js b/static/loader.js index af2ca01..ce7a915 100644 --- a/static/loader.js +++ b/static/loader.js @@ -34,11 +34,9 @@ $(document).ready(function (){ const insertGame = (gridboxnum, gamestate, timestamp) => { var thisBox = grid.children[gridboxnum]; + thisBox.className = "game"; + thisBox.timestamp = timestamp; fetch("/static/game.html").then(x=>x.text()).then(gamehtml => { - console.log(gamehtml) - console.log(thisBox) - thisBox.className = "game"; - thisBox.timestamp = timestamp; thisBox.innerHTML = gamehtml; updateGame(thisBox, gamestate); });