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/variants/Chakart/doc/html/Rlogo.svg?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