1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2025-06-30 05:31:07 +02:00

Fix some undefined this in js classes

This commit is contained in:
Alexandre Iooss
2020-10-21 22:38:36 +02:00
parent 9d162b13ed
commit e461c0b526
4 changed files with 7 additions and 6 deletions

View File

@ -17,8 +17,8 @@ export class GsWebRTC {
this.pc.addTransceiver("audio", { "direction": "sendrecv" });
// Configure events
this.pc.oniceconnectionstatechange = this._onConnectionStateChange;
this.pc.ontrack = this._onTrack;
this.pc.oniceconnectionstatechange = () => this._onConnectionStateChange();
this.pc.ontrack = (e) => this._onTrack(e);
}
/**