X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FHall.vue;h=f3c421e6c7c8ff5174ffbc2c0a54589d32103be8;hp=091c71544e8d5fb5415ea7a536e17f35922308b1;hb=2eca7311a1f02285ec875be35cf73b32bdd3b73c;hpb=81dd17869116f70db375597b59232fa8cb11a868 diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index 091c7154..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 (!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 };