From 9705c7f48f22f44de4b368743b818708059008ea Mon Sep 17 00:00:00 2001 From: Nathan Ferch Date: Fri, 1 Dec 2023 11:23:08 -0500 Subject: [PATCH] fix polyfill Per https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/RTCPeerConnection#iceservers iceServers is optional --- polyfill/RTCPeerConnection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polyfill/RTCPeerConnection.js b/polyfill/RTCPeerConnection.js index b72945b..b7b2ed1 100644 --- a/polyfill/RTCPeerConnection.js +++ b/polyfill/RTCPeerConnection.js @@ -51,7 +51,7 @@ export default class _RTCPeerConnection extends EventTarget { return url; }); }) - .flat(), + .flat() ?? [], }); // forward peerConnection events