From: Benjamin Auder Date: Thu, 8 Apr 2021 19:50:50 +0000 (+0200) Subject: Add temporary patch for preset challenges X-Git-Url: https://git.auder.net/variants/Chakart/pieces/current/doc/screen_timer.png?a=commitdiff_plain;h=41b3e69acb9195cc106dd018af5fc969ea2d48c0;p=vchess.git Add temporary patch for preset challenges --- 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);