From 0f0552a7e966246b9c81dda5e1ca2cb1fddd8961 Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Mon, 6 Apr 2020 13:59:11 +0200
Subject: [PATCH] Fix + some more traces

---
 client/src/components/BaseGame.vue | 5 +++++
 1 file changed, 5 insertions(+)

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:
-- 
2.44.0