- const newUrl = "/analyze/" + this.game.vname +
- "/?fen=" + this.vr.getFen().replace(/ /g, "_");
- if (this.game.type == "live")
- this.$router.push(newUrl); //open in same tab: against cheating...
- else
- window.open("#" + newUrl); //open in a new tab: more comfortable
+ const newUrl =
+ "/analyse/" +
+ this.game.vname +
+ "/?fen=" +
+ this.vr.getFen().replace(/ /g, "_");
+ // Open in same tab in live games (against cheating)
+ if (this.game.type == "live") this.$router.push(newUrl);
+ else window.open("#" + newUrl);