X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Futils%2FgameStorage.js;h=2e78994286cbb19cdb795b8ca6880e6b04cd92f5;hp=dfbd639483fe67ab9a4fc7005eb341ee60d885c9;hb=dcff8e82dd8bbc285d9c2d5d5e3b361a9ecfa9ac;hpb=e5c1d0fb0ed18632e9172c932d6e5c2c8c5742b8 diff --git a/client/src/utils/gameStorage.js b/client/src/utils/gameStorage.js index dfbd6394..2e789942 100644 --- a/client/src/utils/gameStorage.js +++ b/client/src/utils/gameStorage.js @@ -83,7 +83,7 @@ export const GameStorage = { objectStore.get(gameId).onsuccess = function(event) { // Ignoring error silently: shouldn't happen now. TODO? if (event.target.result) { - const game = event.target.result; + let game = event.target.result; Object.keys(obj).forEach(k => { if (k == "move") game.moves.push(obj[k]); else game[k] = obj[k];