X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Futils%2Fstorage.js;h=a30bb824e964b70ce855c973d1fefeac3b4e87d4;hp=ecafe20502141f16c52142590c1c0473fc24c866;hb=8a7452b520dc7ead6880a7e62e7c0e057db1ebda;hpb=6ec161b904b068b0f07defce45dba936933f4a1b diff --git a/client/src/utils/storage.js b/client/src/utils/storage.js index ecafe205..a30bb824 100644 --- a/client/src/utils/storage.js +++ b/client/src/utils/storage.js @@ -99,7 +99,7 @@ export const GameStorage = fen: o.fenStart, moves: [], clocks: [...Array(o.players.length)].fill(tc.mainTime), - initime: undefined, + initime: (o.initime ? Date.now() : undefined), score: "*", };