Ver código fonte

Fixes issue with multiple room query parameters added to bosh url

master
hristoterezov 9 anos atrás
pai
commit
6b5f6ec704
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      connection.js

+ 2
- 2
connection.js Ver arquivo

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(

Carregando…
Cancelar
Salvar