X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=ac0a41ec946df54e4dfbdb577a6db2fff0e02799;hp=bbc6484a8317aef6033ffc79e89c2ffdcd5f459d;hb=8899888e08a54dd3014693bc239f4cec7ddc26d7;hpb=f20f96397f8cc89e369974d7cb10d1d12ebfe71b diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index bbc6484a..ac0a41ec 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -419,7 +419,7 @@ export default { this.conn = new WebSocket(this.connexionString); this.conn.addEventListener("message", this.socketMessageListener); const oppSid = this.getOppsid(); - if (!!oppSid) this.requestLaststate(oppSid); //in case of + if (!!oppSid) this.requestLastate(oppSid); //in case of } }, 1000 @@ -697,7 +697,7 @@ export default { this.game.type == "live" && this.game.players.some(p => p.sid == user.sid) ) { - this.requestLaststate(user.sid); + this.requestLastate(user.sid); } break; }