- launchGame: async function() {
- const vModule = await import("@/variants/" + this.gameInfo.vname + ".js");
- window.V = vModule.VariantRules;
- this.compWorker.postMessage(["scripts",this.gameInfo.vname]);
- this.compWorker.postMessage(["init",this.gameInfo.fen]);
+ launchGame: function() {
+ this.compWorker.postMessage(["scripts", this.gameInfo.vname]);
+ this.compWorker.postMessage(["init", this.gameInfo.fen]);