webrtc-adapter
Advanced tools
Comparing version 7.6.3 to 7.6.4
@@ -18,3 +18,3 @@ /* | ||
var adapter = (0, _adapter_factory.adapterFactory)({ window: window }); | ||
var adapter = (0, _adapter_factory.adapterFactory)({ window: typeof window === 'undefined' ? undefined : window }); | ||
exports.default = adapter; |
@@ -14,3 +14,3 @@ /* | ||
var adapter = (0, _adapter_factory.adapterFactory)({ window: window }); | ||
var adapter = (0, _adapter_factory.adapterFactory)({ window: typeof window === 'undefined' ? undefined : window }); | ||
module.exports = adapter; // this is the difference from adapter_core. |
@@ -163,6 +163,3 @@ /* | ||
function detectBrowser(window) { | ||
var navigator = window.navigator; | ||
// Returned result object. | ||
var result = { browser: null, version: null }; | ||
@@ -176,2 +173,5 @@ | ||
var navigator = window.navigator; | ||
if (navigator.mozGetUserMedia) { | ||
@@ -178,0 +178,0 @@ // Firefox. |
{ | ||
"name": "webrtc-adapter", | ||
"version": "7.6.3", | ||
"version": "7.6.4", | ||
"description": "A shim to insulate apps from WebRTC spec changes and browser prefix differences", | ||
@@ -5,0 +5,0 @@ "license": "BSD-3-Clause", |
@@ -14,3 +14,4 @@ /* | ||
const adapter = adapterFactory({window}); | ||
const adapter = | ||
adapterFactory({window: typeof window === 'undefined' ? undefined : window}); | ||
export default adapter; |
@@ -14,3 +14,4 @@ /* | ||
const adapter = adapterFactory({window}); | ||
const adapter = | ||
adapterFactory({window: typeof window === 'undefined' ? undefined : window}); | ||
module.exports = adapter; // this is the difference from adapter_core. |
@@ -152,4 +152,2 @@ /* | ||
export function detectBrowser(window) { | ||
const {navigator} = window; | ||
// Returned result object. | ||
@@ -164,2 +162,4 @@ const result = {browser: null, version: null}; | ||
const {navigator} = window; | ||
if (navigator.mozGetUserMedia) { // Firefox. | ||
@@ -166,0 +166,0 @@ result.browser = 'firefox'; |
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
21765
872528
45