Skip to content

Commit

Permalink
fix: update to latest version for new typescript version
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniow committed Jul 10, 2024
1 parent 436969b commit 67ecc0d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/peer-connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,8 @@ class PeerConnection extends EventEmitter<PeerConnectionEventHandlers> {
this.emit(PeerConnection.Events.IceCandidate, ev);
};

this.pc.onicecandidateerror = (ev: Event) => {
const event = ev as RTCPeerConnectionIceErrorEvent;

this.emit(PeerConnection.Events.IceCandidateError, event);
this.pc.onicecandidateerror = (ev: RTCPeerConnectionIceErrorEvent) => {
this.emit(PeerConnection.Events.IceCandidateError, ev);
};
}

Expand Down

0 comments on commit 67ecc0d

Please sign in to comment.