mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-23 06:04:32 +01:00
reorganize some code
This commit is contained in:
1 parent
7011d4d20f
commit
b298874f0d
24 files changed
+5
-5
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import { assertSecret } from "@blitzkit/core";
|
||||
import { GameInterface } from "@blitzkit/game";
|
||||
import { clientUnmounted } from "./unmounted";
|
||||
|
||||
let _game: GameInterface | null = null;
|
||||
|
||||
if (!clientUnmounted) {
|
||||
_game = new GameInterface(assertSecret(import.meta.env.PUBLIC_WOTB_CLIENT));
|
||||
}
|
||||
|
||||
export const game = _game;
|
||||
@@ -0,0 +1,5 @@
|
||||
export const clientUnmounted = !("PUBLIC_WOTB_CLIENT" in import.meta.env);
|
||||
|
||||
if (clientUnmounted) {
|
||||
console.warn("Running in client denied mode...");
|
||||
}
|
||||
Reference in new issue
Block a user