X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FHall.vue;h=1bd5987cb48724bf184f69b78b05b39ba6ce77c1;hp=6d675a15bb08ddb6879178bf29533c5099f7b816;hb=41b3e69acb9195cc106dd018af5fc969ea2d48c0;hpb=eb2d61de8d569470fa329a484efe9bab420b2b82 diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index 6d675a15..1bd5987c 100644 --- a/client/src/views/Hall.vue +++ b/client/src/views/Hall.vue @@ -300,6 +300,10 @@ export default { } }, created: function() { + // TODO: remove this patch soon: + this.presetChalls.forEach(pc => { + if (!pc.options) pc.options = { randomness: pc.randomness }; + }); document.addEventListener('visibilitychange', this.visibilityChange); window.addEventListener('focus', this.onFocus); window.addEventListener('blur', this.onBlur);