diff --git a/libs/modules/RTC.bundle.js b/libs/modules/RTC.bundle.js index 8d1510fb75..dfb3918f31 100644 --- a/libs/modules/RTC.bundle.js +++ b/libs/modules/RTC.bundle.js @@ -154,7 +154,7 @@ var DataChannels = */ bindDataChannelListener: function (peerConnection) { if(!config.openSctp) - retrun; + return; peerConnection.ondatachannel = this.onDataChannel; diff --git a/libs/modules/xmpp.bundle.js b/libs/modules/xmpp.bundle.js index c401f6ac25..585414193c 100644 --- a/libs/modules/xmpp.bundle.js +++ b/libs/modules/xmpp.bundle.js @@ -3796,7 +3796,7 @@ module.exports = function(XMPP, eventEmitter) { var self = this; // Remove old ssrcs coming from the jid Object.keys(this.ssrc2jid).forEach(function (ssrc) { - if (self.ssrc2jid[ssrc] == jid) { + if (self.ssrc2jid[ssrc] == from) { delete self.ssrc2jid[ssrc]; } }); diff --git a/modules/RTC/DataChannels.js b/modules/RTC/DataChannels.js index 8cb75ae906..ec2a9e7000 100644 --- a/modules/RTC/DataChannels.js +++ b/modules/RTC/DataChannels.js @@ -153,7 +153,7 @@ var DataChannels = */ bindDataChannelListener: function (peerConnection) { if(!config.openSctp) - retrun; + return; peerConnection.ondatachannel = this.onDataChannel; diff --git a/modules/xmpp/strophe.emuc.js b/modules/xmpp/strophe.emuc.js index d6d48afa35..001d0feb55 100644 --- a/modules/xmpp/strophe.emuc.js +++ b/modules/xmpp/strophe.emuc.js @@ -570,7 +570,7 @@ module.exports = function(XMPP, eventEmitter) { var self = this; // Remove old ssrcs coming from the jid Object.keys(this.ssrc2jid).forEach(function (ssrc) { - if (self.ssrc2jid[ssrc] == jid) { + if (self.ssrc2jid[ssrc] == from) { delete self.ssrc2jid[ssrc]; } });