mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
separate game interface import better
This commit is contained in:
1 parent
cca46957bc
commit
03e06b050e
1 file changed
+2
-1
@@ -1,10 +1,11 @@
|
|||||||
import { assertSecret } from "@blitzkit/core";
|
import { assertSecret } from "@blitzkit/core";
|
||||||
import { GameInterface } from "@blitzkit/game";
|
import type { GameInterface } from "@blitzkit/game";
|
||||||
import { clientUnmounted } from "./unmounted";
|
import { clientUnmounted } from "./unmounted";
|
||||||
|
|
||||||
let _game: GameInterface | null = null;
|
let _game: GameInterface | null = null;
|
||||||
|
|
||||||
if (!clientUnmounted) {
|
if (!clientUnmounted) {
|
||||||
|
const { GameInterface } = await import("@blitzkit/game");
|
||||||
_game = new GameInterface(assertSecret(import.meta.env.PUBLIC_WOTB_CLIENT));
|
_game = new GameInterface(assertSecret(import.meta.env.PUBLIC_WOTB_CLIENT));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user