summaryrefslogtreecommitdiff
path: root/scripts/client.js
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2022-07-27 00:30:42 -0400
committerKyle Gunger <kgunger12@gmail.com>2022-07-27 00:30:42 -0400
commitd0ec435399ff3308be1b79ad67e37321b9a97b8e (patch)
tree9298f875c7cb6328294427d8e543c9024a08798d /scripts/client.js
parenta97fcacb0ce4d2f30fbe989ec1f62f6bd95c7e9a (diff)
[chat] Use an object instead of a list
Diffstat (limited to 'scripts/client.js')
-rw-r--r--scripts/client.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/client.js b/scripts/client.js
index 3c73793..01d5bea 100644
--- a/scripts/client.js
+++ b/scripts/client.js
@@ -61,8 +61,7 @@ class Client{
this.table = new Table(document.getElementsByClassName("table")[0], this.drag, this.socket);
this.chat = new Chat(document.getElementsByClassName("chat")[0], this.socket);
- this.chat.addChannel("Global");
- this.chat.switchChannel("Global");
+ this.chat.addChannel({name: "Global", id: "global", follow: true});
this.settings = new Settings(DefaultUserOps);
this.settings.putSettings(this.lobby.e.settings);