projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Patch local + imported games on MyGames page
[vchess.git]
/
client
/
src
/
views
/
Hall.vue
diff --git
a/client/src/views/Hall.vue
b/client/src/views/Hall.vue
index
091c715
..
05ee05b
100644
(file)
--- a/
client/src/views/Hall.vue
+++ b/
client/src/views/Hall.vue
@@
-479,7
+479,13
@@
export default {
this.conn = null;
},
getRandomnessClass: function(pc) {
this.conn = null;
},
getRandomnessClass: function(pc) {
- if (!Number.isInteger(pc.options.randomness)) return {};
+ if (
+ // TODO: one extra test here
+ !Number.isInteger(pc.options.randomness) &&
+ !parseInt(pc.options.randomness, 10)
+ ) {
+ return {};
+ }
return {
["random-" + pc.options.randomness]: true
};
return {
["random-" + pc.options.randomness]: true
};
@@
-1397,7
+1403,8
@@
export default {
moves: [],
clocks: [-1, -1], //-1 = unstarted
chats: [],
moves: [],
clocks: [-1, -1], //-1 = unstarted
chats: [],
- score: "*"
+ score: "*",
+ options: JSON.stringify(gameInfo.options)
}
);
setTimeout(
}
);
setTimeout(