Fixes data channels JS errors.
This commit is contained in:
parent
8cabf2b003
commit
f1a1d6fa7d
|
@ -509,7 +509,7 @@ var RTCEvents = require("../../service/RTC/RTCEvents");
|
|||
* @param peerConnection WebRTC peer connection instance.
|
||||
*/
|
||||
function DataChannels(peerConnection, emitter) {
|
||||
peerConnection.ondatachannel = this.onDataChannel;
|
||||
peerConnection.ondatachannel = this.onDataChannel.bind(this);
|
||||
this.eventEmitter = emitter;
|
||||
|
||||
this._dataChannels = [];
|
||||
|
|
|
@ -10,7 +10,7 @@ var RTCEvents = require("../../service/RTC/RTCEvents");
|
|||
* @param peerConnection WebRTC peer connection instance.
|
||||
*/
|
||||
function DataChannels(peerConnection, emitter) {
|
||||
peerConnection.ondatachannel = this.onDataChannel;
|
||||
peerConnection.ondatachannel = this.onDataChannel.bind(this);
|
||||
this.eventEmitter = emitter;
|
||||
|
||||
this._dataChannels = [];
|
||||
|
|
Loading…
Reference in New Issue