diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2022-08-18 02:17:23 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2022-08-18 02:17:23 -0400 |
commit | 46aae06bd699b3ca396f7f5c750e1fb9fc9ff4bc (patch) | |
tree | 92a7c7179a568d0095c2fff3c14d20437c1acd8b /scripts/gui/lobby.js | |
parent | 4efae60183feb616c3dec7698a6a2fe4351b71c7 (diff) |
Add transform to drags
Diffstat (limited to 'scripts/gui/lobby.js')
-rw-r--r-- | scripts/gui/lobby.js | 4 |
1 files changed, 2 insertions, 2 deletions
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; |