X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=1753df0d12eaf864d58ef856f01b54a377b9a2ac;hp=45410317837291da8917f5fbbeb1737c7e5d3acf;hb=4f524197ee499b58f574908c58bf50efa69dd359;hpb=10addfff8239405375a1c99b8582f4d4d8283d0a diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index 45410317..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;