Fixes issue with multiple room query parameters added to bosh url

This commit is contained in:
hristoterezov 2016-05-02 14:22:02 -05:00
parent 0970fdd7e7
commit 6b5f6ec704
1 changed files with 2 additions and 2 deletions

View File

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