From 4593f9ced525254d3047ba653a194f2cc102a77d Mon Sep 17 00:00:00 2001 From: Kemil Beltre Date: Thu, 20 Jul 2023 18:32:42 +0200 Subject: [PATCH 1/2] fix: change checking to connecting in examples --- .../rtcpeerconnection/connectionstatechange_event/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/en-us/web/api/rtcpeerconnection/connectionstatechange_event/index.md b/files/en-us/web/api/rtcpeerconnection/connectionstatechange_event/index.md index 29d06a02d3c04f4..197ffa559f3cee7 100644 --- a/files/en-us/web/api/rtcpeerconnection/connectionstatechange_event/index.md +++ b/files/en-us/web/api/rtcpeerconnection/connectionstatechange_event/index.md @@ -38,7 +38,7 @@ peerConnection.addEventListener( (event) => { switch (peerConnection.connectionState) { case "new": - case "checking": + case "connecting": setOnlineStatus("Connecting…"); break; case "connected": @@ -58,7 +58,7 @@ peerConnection.addEventListener( break; } }, - false, + false ); ``` @@ -68,7 +68,7 @@ You can also create a handler for the `connectionstatechange` event using the `R peerConnection.onconnectionstatechange = (ev) => { switch (peerConnection.connectionState) { case "new": - case "checking": + case "connecting": setOnlineStatus("Connecting…"); break; // … From b793b74909d3b7eff737362f86dcddfd0e6fdd30 Mon Sep 17 00:00:00 2001 From: "Michael[tm] Smith" Date: Fri, 21 Jul 2023 01:38:39 +0900 Subject: [PATCH 2/2] Make prettier shut up --- .../api/rtcpeerconnection/connectionstatechange_event/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/web/api/rtcpeerconnection/connectionstatechange_event/index.md b/files/en-us/web/api/rtcpeerconnection/connectionstatechange_event/index.md index 197ffa559f3cee7..7150e5504c89149 100644 --- a/files/en-us/web/api/rtcpeerconnection/connectionstatechange_event/index.md +++ b/files/en-us/web/api/rtcpeerconnection/connectionstatechange_event/index.md @@ -58,7 +58,7 @@ peerConnection.addEventListener( break; } }, - false + false, ); ```