projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Stop highlighting king when new game starts
[vchess.git]
/
public
/
javascripts
/
components
/
game.js
diff --git
a/public/javascripts/components/game.js
b/public/javascripts/components/game.js
index
499e473
..
9e00d12
100644
(file)
--- 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.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
this.fenStart = continuation
? localStorage.getItem("fenStart")
: fen.split(" ")[0]; //Only the position matters