From: Benjamin Auder Date: Tue, 11 Dec 2018 14:22:59 +0000 (+0100) Subject: Fix sound level retrieval via cookie X-Git-Url: https://git.auder.net/img/css/current/gitweb.js?a=commitdiff_plain;h=8b7aead3839ef4d5648aa7244412803753fee969;p=vchess.git Fix sound level retrieval via cookie --- diff --git a/public/javascripts/components/game.js b/public/javascripts/components/game.js index c949c29b..cb4d273d 100644 --- a/public/javascripts/components/game.js +++ b/public/javascripts/components/game.js @@ -20,7 +20,7 @@ Vue.component('my-game', { hints: (getCookie("hints") === "1" ? true : false), color: getCookie("color", "lichess"), //lichess, chesscom or chesstempo // sound level: 0 = no sound, 1 = sound only on newgame, 2 = always - sound: getCookie("sound", "2"), + sound: parseInt(getCookie("sound", "2")), }; }, render(h) {