浏览代码

Passes all configs to the connection.

j8
damencho 9 年前
父节点
当前提交
7e35794e47
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1
    5
      connection.js

+ 1
- 5
connection.js 查看文件

@@ -6,11 +6,7 @@ const ConnectionEvents = JitsiMeetJS.events.connection;
6 6
 const ConnectionErrors = JitsiMeetJS.errors.connection;
7 7
 
8 8
 function connect(id, password) {
9
-    let connection = new JitsiMeetJS.JitsiConnection(null, null, {
10
-        hosts: config.hosts,
11
-        bosh: config.bosh,
12
-        clientNode: config.clientNode
13
-    });
9
+    let connection = new JitsiMeetJS.JitsiConnection(null, null, config);
14 10
 
15 11
     return new Promise(function (resolve, reject) {
16 12
         connection.addEventListener(

正在加载...
取消
保存