projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adjustments
[vchess.git]
/
client
/
src
/
views
/
Hall.vue
diff --git
a/client/src/views/Hall.vue
b/client/src/views/Hall.vue
index
c9a15ea
..
f3c421e
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 (!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
};