From: Benjamin Auder Date: Mon, 6 Apr 2020 11:59:11 +0000 (+0200) Subject: Fix + some more traces X-Git-Url: https://git.auder.net/variants/current/css/img/scripts/app_dev.php?a=commitdiff_plain;h=0f0552a7e966246b9c81dda5e1ca2cb1fddd8961;p=vchess.git Fix + some more traces --- diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index dc15413f..df2e8af5 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -274,6 +274,7 @@ export default { fen = mv[mv.length-1].fen; } this.vr = new V(fen); + this.incheck = this.vr.getCheckSquares(); document.getElementById("analyzeBtn").classList.remove("active"); } }, @@ -429,6 +430,10 @@ export default { return; } if (!!received) { + + if (this.mode == "analyze") { console.log("received move"); + console.log(move); } + if (this.mode == "analyze") this.toggleAnalyze(); if (this.cursor < this.moves.length - 1) // To play a received move, cursor must be at the end of the game: