- this.gameInfo = GameStorage.get(this.gameRef);
-
-console.log(GameStorage.get(this.gameRef));
-
- this.vname = this.gameInfo.vname;
- this.mode = this.gameInfo.mode;
- const vModule = await import("@/variants/" + this.vname + ".js");
- window.V = vModule.VariantRules;
- this.vr = new V(this.gameInfo.fen);
-
+ GameStorage.get(this.gameRef, (game) => {
+ this.gameInfo =
+ this.vname = game.vname;
+ this.mode = game.mode;
+ const vModule = await import("@/variants/" + this.vname + ".js");
+ window.V = vModule.VariantRules;
+ this.vr = new V(this.gameInfo.fen);
+ });