Bläddra i källkod

Fixes issue with multiple room query parameters added to bosh url

j8
hristoterezov 9 år sedan
förälder
incheckning
6b5f6ec704
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2
    2
      connection.js

+ 2
- 2
connection.js Visa fil

@@ -52,11 +52,11 @@ function checkForAttachParametersAndConnect(id, password, connection) {
52 52
  */
53 53
 function connect(id, password, roomName) {
54 54
 
55
-    let connectionConfig = config;
55
+    let connectionConfig = Object.assign({}, config);
56 56
 
57 57
     connectionConfig.bosh += '?room=' + roomName;
58 58
     let connection
59
-        = new JitsiMeetJS.JitsiConnection(null, config.token, config);
59
+        = new JitsiMeetJS.JitsiConnection(null, config.token, connectionConfig);
60 60
 
61 61
     return new Promise(function (resolve, reject) {
62 62
         connection.addEventListener(

Laddar…
Avbryt
Spara