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()