From ee339c82b356125c35c40ed25afbf5163d961bee Mon Sep 17 00:00:00 2001 From: guochao Date: Tue, 4 Jun 2024 11:54:13 +0800 Subject: [PATCH] remove ui in ChatRoom --- chat-signaling-server/templates/index.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/chat-signaling-server/templates/index.html b/chat-signaling-server/templates/index.html index 5c1a530..49dc15d 100644 --- a/chat-signaling-server/templates/index.html +++ b/chat-signaling-server/templates/index.html @@ -27,7 +27,7 @@ const MessageSessionAnswer = "SessionAnswer"; const MessageICECandidate = "IceCandidate"; - function ChatRoom(room, name, ui, options) { + function ChatRoom(room, name, options) { options = options || {}; let { iceServers } = options; @@ -42,8 +42,6 @@ this.ws = null; - this.ui = ui; - this.event = new EventTarget(); } @@ -479,7 +477,7 @@ let search = new URLSearchParams(location.search); - let room = new ChatRoom(search.get("room") || "public", search.get("name") || "", undefined, {}) + let room = new ChatRoom(search.get("room") || "public", search.get("name") || "", {}) let ui = new ChatUI(message_list, peers, inputbox, sendfile); ui.setup()