X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=f9bc8430b4878faf2e64a888ddb887f9acad6f54;hp=e5b45ecda2a896f474ea1d7a942c948e97e64788;hb=c7550017d88ff6eb32e2c76a271a7f9edc4a3bf6;hpb=0d5335de5c94d780e03ac0aa3279b731c69455cc diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index e5b45ecd..f9bc8430 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -629,8 +629,13 @@ export default { this.send("fullgame", { data: gameToSend, target: data.from }); break; case "fullgame": - // Callback "roomInit" to poll clients only after game is loaded - this.loadVariantThenGame(data.data, this.roomInit); + if (!!data.data.empty) { + alert(this.st.tr["The game should be in another tab"]); + this.$router.go(-1); + } + else + // Callback "roomInit" to poll clients only after game is loaded + this.loadVariantThenGame(data.data, this.roomInit); break; case "asklastate": // Sending informative last state if I played a move or score != "*"