diff --git a/release/adapter.js b/release/adapter.js index fd02e902b..48647648e 100644 --- a/release/adapter.js +++ b/release/adapter.js @@ -4189,7 +4189,7 @@ module.exports = { var RTCPeerConnectionShim = shimRTCPeerConnection(window, browserDetails.version); window.RTCPeerConnection = function(config) { - if (config.iceServers) { + if (config && config.iceServers) { config.iceServers = filterIceServers(config.iceServers); } return new RTCPeerConnectionShim(config); diff --git a/release/adapter_no_global.js b/release/adapter_no_global.js index f61b66f57..f6cbb3af3 100644 --- a/release/adapter_no_global.js +++ b/release/adapter_no_global.js @@ -4189,7 +4189,7 @@ module.exports = { var RTCPeerConnectionShim = shimRTCPeerConnection(window, browserDetails.version); window.RTCPeerConnection = function(config) { - if (config.iceServers) { + if (config && config.iceServers) { config.iceServers = filterIceServers(config.iceServers); } return new RTCPeerConnectionShim(config);