X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Futils%2FgameStorage.js;fp=client%2Fsrc%2Futils%2FgameStorage.js;h=6b4c7113dd468cd41ac7b7386a92907db2018418;hb=1a0215292a1eda58217f90d59fd7cdce1dd4c07c;hp=e26e19ab70eb5eded8075ebe7e5266023270ef1d;hpb=79e05a1ac8a396aa3655b195998ef1f07cdba68e;p=vchess.git diff --git a/client/src/utils/gameStorage.js b/client/src/utils/gameStorage.js index e26e19ab..6b4c7113 100644 --- a/client/src/utils/gameStorage.js +++ b/client/src/utils/gameStorage.js @@ -85,6 +85,8 @@ export const GameStorage = { if (obj.moveIdx < game.moves.length) return; Object.keys(obj).forEach(k => { if (k == "move") game.moves.push(obj[k]); + else if (k == "chat") game.chats.push(obj[k]); + else if (k == "delchat") game.chats = []; else game[k] = obj[k]; }); objectStore.put(game); //save updated data