X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FHall.vue;h=f3c421e6c7c8ff5174ffbc2c0a54589d32103be8;hp=c9a15eaa4430a38c552cd4021d46aefa6e7a0dc6;hb=2eca7311a1f02285ec875be35cf73b32bdd3b73c;hpb=3d9745ae10ba867e4c1ec6e848db29c5e293420b diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index c9a15eaa..f3c421e6 100644 --- a/client/src/views/Hall.vue +++ b/client/src/views/Hall.vue @@ -479,7 +479,13 @@ export default { 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 };