Skip to content

Commit

Permalink
Add adapter artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
alvestrand committed May 24, 2018
1 parent 1c2667c commit 1d8b74f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion release/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion release/adapter_no_global.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1d8b74f

Please sign in to comment.