projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Styling
[vchess.git]
/
client
/
src
/
utils
/
gameStorage.js
diff --git
a/client/src/utils/gameStorage.js
b/client/src/utils/gameStorage.js
index
6b44632
..
a9ebf33
100644
(file)
--- 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 ?
},
// 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)))
{
{
if (Number.isInteger(gameId) || !isNaN(parseInt(gameId)))
{
@@
-79,9
+79,11
@@
export const GameStorage =
gid: gameId,
newObj:
{
gid: gameId,
newObj:
{
+ chat: obj.chat,
move: obj.move, //may be undefined...
fen: obj.fen,
score: obj.score,
move: obj.move, //may be undefined...
fen: obj.fen,
score: obj.score,
+ drawOffer: obj.drawOffer,
}
}
);
}
}
);