summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2022-07-18 23:19:58 -0400
committerKyle Gunger <kgunger12@gmail.com>2022-07-18 23:19:58 -0400
commit1dab192a329b1ad966b0c1e0401eeaa78d5b752e (patch)
tree2fbc10a865179e8a36f0f8e1b450fdf9c3eb1069 /scripts
parent19daa4f91a348515af5f9610bd686b5bf4f509ba (diff)
Init + deck bug
Push init code into client.js Fix deck rendering bugs for strip modes
Diffstat (limited to 'scripts')
-rw-r--r--scripts/client.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/client.js b/scripts/client.js
index 9ce9a07..77b12b8 100644
--- a/scripts/client.js
+++ b/scripts/client.js
@@ -167,3 +167,13 @@ class Client{
}
}
+
+// Global init of the game variable
+
+let game;
+
+(() => {
+ let params = new URLSearchParams((new URL(window.location)).search);
+ game = new Client(params.get("s"), params.get("g"));
+ game.init();
+})(); \ No newline at end of file