universal-env
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -34,3 +34,4 @@ "use strict"; | ||
if (isMiniApp || isWechatApp || isWeex) { | ||
return systemInfo.platform.toLowerCase() === 'android'; | ||
var platform = systemInfo.platform || ''; | ||
return platform.toLowerCase() === 'android'; | ||
} else if (isWeb) { | ||
@@ -37,0 +38,0 @@ return Boolean(navigator.userAgent.match(/android/i)); |
{ | ||
"name": "universal-env", | ||
"author": "rax", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"license": "BSD-3-Clause", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
@@ -29,3 +29,4 @@ // https://www.w3.org/TR/html5/webappapis.html#dom-navigator-appcodename | ||
if (isMiniApp || isWechatApp || isWeex) { | ||
return systemInfo.platform.toLowerCase() === 'android'; | ||
const platform = systemInfo.platform || ''; | ||
return platform.toLowerCase() === 'android'; | ||
} else if (isWeb) { | ||
@@ -32,0 +33,0 @@ return Boolean(navigator.userAgent.match(/android/i)); |
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
11921
186