summaryrefslogtreecommitdiff
path: root/scripts/client.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/client.js')
-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