From: Benjamin Auder Date: Sun, 9 Feb 2020 13:46:14 +0000 (+0100) Subject: Remove extra window.V definition X-Git-Url: https://git.auder.net/variants/current/doc/css/scripts/getGraph_%22%20%20%20this.image%20%20%20%22.php?a=commitdiff_plain;h=e6a5a8eae62d8af13435687c81d19a20b77f1de3;p=vchess.git Remove extra window.V definition --- diff --git a/client/src/components/ComputerGame.vue b/client/src/components/ComputerGame.vue index a4a53f65..14c1b071 100644 --- a/client/src/components/ComputerGame.vue +++ b/client/src/components/ComputerGame.vue @@ -80,12 +80,8 @@ export default { if (!!this.gameInfo.fen) this.launchGame(); }, - // dans variant.js (plutôt room.js) conn gère aussi les challenges - // et les chats dans chat.js. Puis en webRTC, repenser tout ça. methods: { - launchGame: async function() { - const vModule = await import("@/variants/" + this.gameInfo.vname + ".js"); - window.V = vModule.VariantRules; + launchGame: function() { this.compWorker.postMessage(["scripts",this.gameInfo.vname]); this.compWorker.postMessage(["init",this.gameInfo.fen]); this.vr = new V(this.gameInfo.fen);