X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fstore.js;h=c98657ef50f2d4df1316a4b37540f79b8dd8350b;hb=aae89b49a846b2c101d74db7dff9151392d6db34;hp=10ad10e694bffdafd592cb964ae1e56331a4d0ff;hpb=f0c68a04e31bb6a4b2f8b94a532ef3ca2eebbe3e;p=vchess.git diff --git a/client/src/store.js b/client/src/store.js index 10ad10e6..c98657ef 100644 --- a/client/src/store.js +++ b/client/src/store.js @@ -76,8 +76,13 @@ export const store = { bcolor: localStorage.getItem("bcolor") || "lichess", sound: getItemDefaultTrue("sound"), hints: getItemDefaultTrue("hints"), - highlight: getItemDefaultTrue("highlight") + highlight: getItemDefaultTrue("highlight"), + gotonext: getItemDefaultTrue("gotonext"), + randomness: parseInt(localStorage.getItem("randomness")) }; + if (isNaN(this.state.settings.randomness)) + // Default: random asymmetric + this.state.settings.randomness = 2; const supportedLangs = ["en", "es", "fr"]; const navLanguage = navigator.language.substr(0,2); this.state.lang =