X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Futils%2FgameStorage.js;h=a9ebf33ae234b5aa49052dd39aad1d599f50d0d5;hp=b7cf85c18a111ff044d3041053e57d6dddcf3d1d;hb=63ca2b89cfe577efd168c6b2e26750cb01b66d64;hpb=430a203855578f9bbf4c851165c6066a741ff1f8 diff --git a/client/src/utils/gameStorage.js b/client/src/utils/gameStorage.js index b7cf85c1..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,9 +79,9 @@ export const GameStorage = gid: gameId, newObj: { + chat: obj.chat, move: obj.move, //may be undefined... fen: obj.fen, - message: obj.message, score: obj.score, drawOffer: obj.drawOffer, }