This commit is contained in:
Sakimori 2020-12-30 03:38:20 -05:00
parent 76ba246612
commit ad13554843

View File

@ -34,11 +34,9 @@ $(document).ready(function (){
const insertGame = (gridboxnum, gamestate, timestamp) => {
var thisBox = grid.children[gridboxnum];
fetch("/static/game.html").then(x=>x.text()).then(gamehtml => {
console.log(gamehtml)
console.log(thisBox)
thisBox.className = "game";
thisBox.timestamp = timestamp;
fetch("/static/game.html").then(x=>x.text()).then(gamehtml => {
thisBox.innerHTML = gamehtml;
updateGame(thisBox, gamestate);
});