projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prepare cadence recognition for simultaneous games
[vchess.git]
/
client
/
src
/
views
/
Game.vue
diff --git
a/client/src/views/Game.vue
b/client/src/views/Game.vue
index
cd781a5
..
fa7ab3b
100644
(file)
--- a/
client/src/views/Game.vue
+++ b/
client/src/views/Game.vue
@@
-522,7
+522,11
@@
export default {
},
getGameType: function(game) {
if (!!game.id.toString().match(/^i/)) return "import";
},
getGameType: function(game) {
if (!!game.id.toString().match(/^i/)) return "import";
- return game.cadence.indexOf("d") >= 0 ? "corr" : "live";
+ return (
+ game.cadence.indexOf("d") >= 0
+ ? "corr"
+ : (game.cadence.indexOf("/") >= 0 ? "simul" : "live")
+ );
},
// Notify something after a new move (to opponent and me on MyGames page)
notifyMyGames: function(thing, data) {
},
// Notify something after a new move (to opponent and me on MyGames page)
notifyMyGames: function(thing, data) {