Stop highlighting king when new game starts
authorBenjamin Auder <benjamin.auder@somewhere>
Sun, 18 Nov 2018 11:32:56 +0000 (12:32 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Sun, 18 Nov 2018 11:32:56 +0000 (12:32 +0100)
public/javascripts/components/game.js

index 499e473..9e00d12 100644 (file)
@@ -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