@@ -181,7 +181,7 @@ function createNewPingingRow(sec: number) {
181
181
function setPingResultForSecond (
182
182
sentMillis : number ,
183
183
result : string ,
184
- nowMillis = Date . now ( )
184
+ nowMillis = Date . now ( ) ,
185
185
) {
186
186
const elapsed = nowMillis - sentMillis ;
187
187
const sec = millisToWholeSec ( sentMillis ) ;
@@ -195,7 +195,7 @@ function setPingResultForSecond(
195
195
"had result" ,
196
196
result ,
197
197
"in" ,
198
- elapsed + "ms"
198
+ elapsed + "ms" ,
199
199
) ;
200
200
}
201
201
let toSave : string | number = result ;
@@ -398,7 +398,7 @@ async function testHttpOrDns(testName: string) {
398
398
{
399
399
method : "GET" ,
400
400
cache : "no-store" ,
401
- }
401
+ } ,
402
402
) ;
403
403
}
404
404
@@ -411,7 +411,7 @@ async function testHttpOrDns(testName: string) {
411
411
log (
412
412
testName . toUpperCase ( ) ,
413
413
"test completed successfully in" ,
414
- duration + "ms"
414
+ duration + "ms" ,
415
415
) ;
416
416
updateStatus ( testName , GOOD ) ;
417
417
} catch ( error ) {
@@ -485,11 +485,11 @@ async function setupRtc() {
485
485
{
486
486
method : "POST" ,
487
487
body : rtcPeer . localDescription ! . sdp ,
488
- }
488
+ } ,
489
489
) ;
490
490
const resp_json = await response . json ( ) ;
491
491
await rtcPeer . setRemoteDescription (
492
- new RTCSessionDescription ( resp_json . answer )
492
+ new RTCSessionDescription ( resp_json . answer ) ,
493
493
) ;
494
494
var candidate = new RTCIceCandidate ( resp_json . candidate ) ;
495
495
await rtcPeer . addIceCandidate ( candidate ) ;
@@ -553,7 +553,7 @@ function getEventTimestamp(evt: Event, nowMillis: number, sentMillis: number) {
553
553
"Event time in the future" ,
554
554
sentMillis ,
555
555
eventStamp ,
556
- nowMillis
556
+ nowMillis ,
557
557
) ;
558
558
return nowMillis ;
559
559
}
@@ -565,7 +565,7 @@ function getEventTimestamp(evt: Event, nowMillis: number, sentMillis: number) {
565
565
"Event time too far in past" ,
566
566
sentMillis ,
567
567
eventStamp ,
568
- nowMillis
568
+ nowMillis ,
569
569
) ;
570
570
return nowMillis ;
571
571
}
@@ -600,7 +600,7 @@ function onPingResponse(evt: MessageEvent) {
600
600
console . error (
601
601
"rtcPeerLocation does not match existing:" ,
602
602
newRtcPeerLocation ,
603
- rtcPeerLocation
603
+ rtcPeerLocation ,
604
604
) ;
605
605
}
606
606
}
@@ -610,7 +610,7 @@ function onPingResponse(evt: MessageEvent) {
610
610
setPingResultForSecond ( sentMillis , PING_SUCCESS , receivedMillis ) ;
611
611
if ( lastRtcConnectAttempt + RECONNECT_WEBRTC_PERIOD <= Date . now ( ) ) {
612
612
log (
613
- "Reconnecting WebRTC connection in case the server connection info has updated."
613
+ "Reconnecting WebRTC connection in case the server connection info has updated." ,
614
614
) ;
615
615
setupRtc ( ) ;
616
616
}
0 commit comments