From d0ec435399ff3308be1b79ad67e37321b9a97b8e Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Wed, 27 Jul 2022 00:30:42 -0400 Subject: [chat] Use an object instead of a list --- scripts/client.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts/client.js') 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); -- cgit v1.2.3