diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2021-02-11 13:56:41 -0500 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2021-02-11 13:56:41 -0500 |
commit | 56008230167a0e3dfb4694d73e6b0159b6440484 (patch) | |
tree | 7e1c11b7bdc68cb5ff9e62ae62e8c07efa412bc3 /scripts/gui/lobby.js | |
parent | 8c2d855f7e0ade48913a893b03f342156af3e528 (diff) |
Fix mobile settings
Diffstat (limited to 'scripts/gui/lobby.js')
-rw-r--r-- | scripts/gui/lobby.js | 9 |
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. |