X-Git-Url: https://git.auder.net/variants/Baroque/style.css?a=blobdiff_plain;f=client%2Fsrc%2Futils%2FgameStorage.js;h=a9ebf33ae234b5aa49052dd39aad1d599f50d0d5;hb=63ca2b89cfe577efd168c6b2e26750cb01b66d64;hp=668a230694b465910eb046d9773d9af93fc1c9a6;hpb=b7cbbda10f16c2419f9a4d49e219fcface5e5658;p=vchess.git diff --git a/client/src/utils/gameStorage.js b/client/src/utils/gameStorage.js index 668a2306..a9ebf33a 100644 --- a/client/src/utils/gameStorage.js +++ b/client/src/utils/gameStorage.js @@ -67,7 +67,7 @@ export const GameStorage = }, // TODO: also option to takeback a move ? - update: function(gameId, obj) //move, fen, clocks, score, initime, ... + update: function(gameId, obj) //chat, move, fen, clocks, score, initime, ... { if (Number.isInteger(gameId) || !isNaN(parseInt(gameId))) { @@ -79,6 +79,7 @@ export const GameStorage = gid: gameId, newObj: { + chat: obj.chat, move: obj.move, //may be undefined... fen: obj.fen, score: obj.score,