summaryrefslogtreecommitdiff
path: root/scripts/gui
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gui')
-rw-r--r--scripts/gui/lobby.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/gui/lobby.js b/scripts/gui/lobby.js
index a303da8..64af615 100644
--- a/scripts/gui/lobby.js
+++ b/scripts/gui/lobby.js
@@ -155,8 +155,9 @@ class Lobby {
// { data.games[n].max } max players in room
gameList (data) {
while (this.e.games.firstChild != null) {
- this.e.games.remove(this.elements.games.firstChild)
+ this.e.games.removeChild(this.e.games.firstChild)
}
+ console.log("eheh")
for (let i of data.games) {
if(typeof i != "object")