X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FAnalyse.vue;h=1605b584c08acb9d8ae329d3d14934d5a9a5b1e3;hb=2c5d7b20742b802d9c47916915c1114bcfc9a9c3;hp=557a2df74d41f2b570eb52e1df4489afccb623af;hpb=d54f6261c9e30f4eabb402ad301dd5c5e40fb656;p=vchess.git diff --git a/client/src/views/Analyse.vue b/client/src/views/Analyse.vue index 557a2df7..1605b584 100644 --- a/client/src/views/Analyse.vue +++ b/client/src/views/Analyse.vue @@ -50,7 +50,8 @@ export default { alertAndQuit: function(text, wrongVname) { // Soon after component creation, st.tr might be uninitialized. // Set a timeout to let a chance for the message to show translated. - const newUrl = "/variants" + (wrongVname ? "" : "/" + this.gameRef.vname); + const newUrl = + "/variants" + (wrongVname ? "" : "/" + this.gameRef.vname); setTimeout(() => { alert(this.st.tr[text] || text); this.$router.replace(newUrl);