From ac0f31cc07d03a1387eb476b80b1b4f9103abba2 Mon Sep 17 00:00:00 2001 From: Alexander Bass Date: Fri, 24 Jun 2022 11:24:22 -0400 Subject: [PATCH] IT WORKS. that was actually pretty easy. Now to fix all the :any types. --- test.mjs | 3 --- www/scripts/interface/mainmenu/create.js | 1 + www/scripts/net/netcode.js | 1 + 3 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 test.mjs diff --git a/test.mjs b/test.mjs deleted file mode 100644 index 7fc3b15..0000000 --- a/test.mjs +++ /dev/null @@ -1,3 +0,0 @@ -import * as util from "./scripts/util.mjs" - -console.log(util.createCode()) diff --git a/www/scripts/interface/mainmenu/create.js b/www/scripts/interface/mainmenu/create.js index 284e7db..80b26e3 100644 --- a/www/scripts/interface/mainmenu/create.js +++ b/www/scripts/interface/mainmenu/create.js @@ -17,6 +17,7 @@ export function init(){ ID("createRoomButton").addEventListener("click", e => { create(e) // picker.destroy("createGameSelectColorBar") + }); const mineSlider = ID("createGameOptionsMinePercent") diff --git a/www/scripts/net/netcode.js b/www/scripts/net/netcode.js index 1f44192..e2b66e4 100644 --- a/www/scripts/net/netcode.js +++ b/www/scripts/net/netcode.js @@ -26,6 +26,7 @@ function leaveGame(socket){ socket.on('connect', function(data){ status.connected() }) + socket.on('disconnect', function(data){ status.disconnected() })