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); });