X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Futils%2FgameStorage.js;h=42f438843381ee29be06bf3530662e877ecd39f5;hp=f69de2e2629a64ac9afc7f9a31eb7f2f3b25ff5e;hb=3d65195b5713c9e6f58b250069e685e4dca448c2;hpb=05d37cc77857fc683e431820aff39db24bd86835 diff --git a/client/src/utils/gameStorage.js b/client/src/utils/gameStorage.js index f69de2e2..42f43884 100644 --- a/client/src/utils/gameStorage.js +++ b/client/src/utils/gameStorage.js @@ -89,6 +89,7 @@ export const GameStorage = { else if (k == "chat") game.chats.push(obj[k]); else if (k == "chatRead") game.chatRead = Date.now(); else if (k == "delchat") game.chats = []; + else if (k == "playerName") game.players[obj.idx] = obj.name; else game[k] = obj[k]; }); objectStore.put(game); //save updated data