From 46aae06bd699b3ca396f7f5c750e1fb9fc9ff4bc Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Thu, 18 Aug 2022 02:17:23 -0400 Subject: Add transform to drags --- scripts/gui/lobby.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/gui/lobby.js') diff --git a/scripts/gui/lobby.js b/scripts/gui/lobby.js index a32c47f..f790a31 100644 --- a/scripts/gui/lobby.js +++ b/scripts/gui/lobby.js @@ -158,7 +158,6 @@ class Lobby { while (this.e.games.firstChild != null) { this.e.games.removeChild(this.e.games.firstChild) } - console.log("eheh") for (let i of data.games) { if(typeof i != "object") @@ -207,7 +206,7 @@ class Lobby { // Called when a new public game is removed on the server // { data string } the uuid of the game to delete deleteGame (data) { - + delete this.games[data]; } // Called when the client wants to toggle the new game screen @@ -240,6 +239,7 @@ class Lobby { while (this.e.games.firstElementChild != null) { this.e.games.removeChild(this.e.games.firstElementChild) } + this.games = {}; this.setState("Connecting", "loading", this.e.addr.innerText); this.init = false; -- cgit v1.2.3