File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ class WebRTCIssueDetector {
140140 this . statsReporter . stopReporting ( ) ;
141141 }
142142
143- public handleNewPeerConnection ( { pc , id } : { pc : RTCPeerConnection , id ?: string } ) : void {
143+ public handleNewPeerConnection ( pc : RTCPeerConnection , id ?: string ) : void {
144144 if ( ! this . #running && this . autoAddPeerConnections ) {
145145 this . logger . debug ( 'Skip handling new peer connection. Detector is not running' , pc ) ;
146146 return ;
@@ -180,7 +180,7 @@ class WebRTCIssueDetector {
180180 }
181181
182182 const OriginalRTCPeerConnection = window . RTCPeerConnection ;
183- const onConnectionCreated = ( pc : RTCPeerConnection ) => this . handleNewPeerConnection ( { pc } ) ;
183+ const onConnectionCreated = ( pc : RTCPeerConnection ) => this . handleNewPeerConnection ( pc ) ;
184184
185185 function WIDRTCPeerConnection ( rtcConfig ?: RTCConfiguration ) {
186186 const connection = new OriginalRTCPeerConnection ( rtcConfig ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { WebRTCIssueEmitter } from './WebRTCIssueEmitter';
44
55export interface WIDWindow {
66 wid : {
7- handleNewPeerConnection ( params : { pc : RTCPeerConnection , id ?: string } ) : void ;
7+ handleNewPeerConnection ( pc : RTCPeerConnection , id ?: string ) : void ;
88 } ,
99}
1010
You can’t perform that action at this time.
0 commit comments