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