webrtc-adapter
Advanced tools
Comparing version 7.5.1 to 7.6.0
@@ -72,2 +72,6 @@ 'use strict'; | ||
} | ||
if (browserDetails.version === null) { | ||
logging('Chrome shim can not determine version, not shimming.'); | ||
return adapter; | ||
} | ||
logging('adapter.js shimming chrome.'); | ||
@@ -153,2 +157,3 @@ // Export to the adapter global object visible in the browser. | ||
safariShim.shimGetUserMedia(window); | ||
safariShim.shimAudioContext(window); | ||
@@ -155,0 +160,0 @@ commonShim.shimRTCIceCandidate(window); |
@@ -24,2 +24,3 @@ /* | ||
exports.shimCreateOfferLegacy = shimCreateOfferLegacy; | ||
exports.shimAudioContext = shimAudioContext; | ||
@@ -358,1 +359,8 @@ var _utils = require('../utils'); | ||
} | ||
function shimAudioContext(window) { | ||
if ((typeof window === 'undefined' ? 'undefined' : _typeof(window)) !== 'object' || window.AudioContext) { | ||
return; | ||
} | ||
window.AudioContext = window.webkitAudioContext; | ||
} |
{ | ||
"name": "webrtc-adapter", | ||
"version": "7.5.1", | ||
"version": "7.6.0", | ||
"description": "A shim to insulate apps from WebRTC spec changes and browser prefix differences", | ||
@@ -38,3 +38,3 @@ "license": "BSD-3-Clause", | ||
"chai": "^3.5.0", | ||
"grunt": "^1.0.4", | ||
"grunt": "^1.1.0", | ||
"grunt-babel": "^7.0.0", | ||
@@ -41,0 +41,0 @@ "grunt-browserify": "^5.3.0", |
@@ -44,2 +44,6 @@ /* | ||
} | ||
if (browserDetails.version === null) { | ||
logging('Chrome shim can not determine version, not shimming.'); | ||
return adapter; | ||
} | ||
logging('adapter.js shimming chrome.'); | ||
@@ -126,2 +130,3 @@ // Export to the adapter global object visible in the browser. | ||
safariShim.shimGetUserMedia(window); | ||
safariShim.shimAudioContext(window); | ||
@@ -128,0 +133,0 @@ commonShim.shimRTCIceCandidate(window); |
@@ -343,1 +343,8 @@ /* | ||
} | ||
export function shimAudioContext(window) { | ||
if (typeof window !== 'object' || window.AudioContext) { | ||
return; | ||
} | ||
window.AudioContext = window.webkitAudioContext; | ||
} |
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
896786
21474