From 61d59cfcf846769d6bbe8c1bcf78233b49197adc Mon Sep 17 00:00:00 2001 From: Joakim Ousager Andersen Date: Mon, 30 Sep 2024 16:01:08 +0200 Subject: [PATCH] Update index.md The getSenders-function is never called, but just accessed as if it was a getter-property. --- .../selectedcandidatepairchange_event/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/en-us/web/api/rtcicetransport/selectedcandidatepairchange_event/index.md b/files/en-us/web/api/rtcicetransport/selectedcandidatepairchange_event/index.md index 05e486a334517d1..53543631e70646b 100644 --- a/files/en-us/web/api/rtcicetransport/selectedcandidatepairchange_event/index.md +++ b/files/en-us/web/api/rtcicetransport/selectedcandidatepairchange_event/index.md @@ -35,7 +35,7 @@ A generic {{domxref("Event")}}. This example creates an event handler for `selectedcandidatepairchange` that updates a display providing the user information about the progress of the ICE negotiation for an {{domxref("RTCPeerConnection")}} called `pc`. ```js -let iceTransport = pc.getSenders[0].transport.iceTransport; +let iceTransport = pc.getSenders()[0].transport.iceTransport; let localProtoElem = document.getElementById("local-protocol"); let remoteProtoElem = document.getElementById("remote-protocol"); @@ -53,7 +53,7 @@ iceTransport.addEventListener( This can also be done by setting the `onselectedcandidatepairchange` event handler property directly. ```js -let iceTransport = pc.getSenders[0].transport.iceTransport; +let iceTransport = pc.getSenders()[0].transport.iceTransport; let localProtoElem = document.getElementById("local-protocol"); let remoteProtoElem = document.getElementById("remote-protocol");