Parcourir la source

Fixes issue with multiple room query parameters added to bosh url

j8
hristoterezov il y a 9 ans
Parent
révision
6b5f6ec704
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2
    2
      connection.js

+ 2
- 2
connection.js Voir le fichier

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

Chargement…
Annuler
Enregistrer