From 1dab192a329b1ad966b0c1e0401eeaa78d5b752e Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Mon, 18 Jul 2022 23:19:58 -0400 Subject: Init + deck bug Push init code into client.js Fix deck rendering bugs for strip modes --- scripts/client.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'scripts/client.js') 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 -- cgit v1.2.3