webrtc-adapter
Advanced tools
Comparing version 7.4.0 to 7.5.0
@@ -727,2 +727,4 @@ | ||
var addIceCandidateNullSupported = window.RTCPeerConnection.prototype.addIceCandidate.length === 0; | ||
// shim implicit creation of RTCSessionDescription/RTCIceCandidate | ||
@@ -743,3 +745,3 @@ if (browserDetails.version < 53) { | ||
window.RTCPeerConnection.prototype.addIceCandidate = function addIceCandidate() { | ||
if (!arguments[0]) { | ||
if (!addIceCandidateNullSupported && !arguments[0]) { | ||
if (arguments[1]) { | ||
@@ -746,0 +748,0 @@ arguments[1].apply(null); |
{ | ||
"name": "webrtc-adapter", | ||
"version": "7.4.0", | ||
"version": "7.5.0", | ||
"description": "A shim to insulate apps from WebRTC spec changes and browser prefix differences", | ||
@@ -5,0 +5,0 @@ "license": "BSD-3-Clause", |
@@ -678,2 +678,5 @@ | ||
const addIceCandidateNullSupported = | ||
window.RTCPeerConnection.prototype.addIceCandidate.length === 0; | ||
// shim implicit creation of RTCSessionDescription/RTCIceCandidate | ||
@@ -699,3 +702,3 @@ if (browserDetails.version < 53) { | ||
function addIceCandidate() { | ||
if (!arguments[0]) { | ||
if (!addIceCandidateNullSupported && !arguments[0]) { | ||
if (arguments[1]) { | ||
@@ -702,0 +705,0 @@ arguments[1].apply(null); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
892825
21377