X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=1753df0d12eaf864d58ef856f01b54a377b9a2ac;hb=4f524197ee499b58f574908c58bf50efa69dd359;hp=7a9fb5b0e97dfea075764855abe8c210cd3076b7;hpb=659a9bd22c88177e203207a406cdb6c9f69139d4;p=vchess.git diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index 7a9fb5b0..1753df0d 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -252,9 +252,6 @@ export default { }, // NOTE: some redundant code with Hall.vue (mostly related to people array) created: function() { - if (this.$route.query["focus"] === "false") - // Focus explicitely set to false from Hall (live game) - this.focus = false; this.atCreation(); }, mounted: function() { @@ -749,6 +746,9 @@ export default { if (!this.game || !this.game.moves) this.lastateAsked = true; else this.sendLastate(data.from); break; + // TODO: possible bad scenario: reload page while oppponent sends a + // move => get both lastate and newmove, process both, add move twice. + // Confirm scenario? Fix? case "lastate": { // Got opponent infos about last move this.gotLastate = true; @@ -1772,7 +1772,7 @@ span.yourturn background-color: lightyellow .draw-received, .draw-received:hover - background-color: #48C9B0 + background-color: #73C6B6 .draw-threerep, .draw-threerep:hover background-color: #D2B4DE