summaryrefslogtreecommitdiff
path: root/scripts/gui/lobby.js
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2021-02-11 13:56:41 -0500
committerKyle Gunger <kgunger12@gmail.com>2021-02-11 13:56:41 -0500
commit56008230167a0e3dfb4694d73e6b0159b6440484 (patch)
tree7e1c11b7bdc68cb5ff9e62ae62e8c07efa412bc3 /scripts/gui/lobby.js
parent8c2d855f7e0ade48913a893b03f342156af3e528 (diff)
Fix mobile settings
Diffstat (limited to 'scripts/gui/lobby.js')
-rw-r--r--scripts/gui/lobby.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/gui/lobby.js b/scripts/gui/lobby.js
index 431e2e5..13f3eab 100644
--- a/scripts/gui/lobby.js
+++ b/scripts/gui/lobby.js
@@ -93,7 +93,10 @@ class Lobby {
}
};
- this.top = new TopBar(document.getElementsByClassName("topbar")[0]);
+ this.top = new TopBar(
+ document.getElementsByClassName("topbar")[0],
+ this.e.settings
+ );
this.init = false;
this.online = [];
@@ -200,9 +203,9 @@ class Lobby {
}
// Called when the client wants to toggle the mobile settings screen
- mobileSettings () {
+ mobileSettings (settings) {
//if(this.init) return;
- this.top.toggleMobileSettings();
+ this.top.toggleMobileSettings(settings);
}
// Called when the WebSocket state has changed.