remove ui in ChatRoom
This commit is contained in:
parent
da2b91a472
commit
ee339c82b3
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user