From: Benjamin Auder Date: Sun, 18 Nov 2018 11:32:56 +0000 (+0100) Subject: Stop highlighting king when new game starts X-Git-Url: https://git.auder.net/%7B%7B%20path%28%27mixstore_static_home%27%29%20%7D%7D?a=commitdiff_plain;h=1fcaa356f499ed76957d650291706a65024145e3;p=vchess.git Stop highlighting king when new game starts --- diff --git a/public/javascripts/components/game.js b/public/javascripts/components/game.js index 499e473a..9e00d12b 100644 --- a/public/javascripts/components/game.js +++ b/public/javascripts/components/game.js @@ -480,6 +480,7 @@ Vue.component('my-game', { } this.vr = new VariantRules(fen, moves || []); this.mode = mode; + this.incheck = []; //in case of this.fenStart = continuation ? localStorage.getItem("fenStart") : fen.split(" ")[0]; //Only the position matters