mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2025-11-10 07:39:28 +01:00
Fix some undefined this in js classes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user