universal-env
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -50,3 +50,3 @@ "use strict"; | ||
if (isMiniApp || isWechatApp || isWeex) { | ||
return ['ios', 'iOS', 'iPhone OS'].includes(systemInfo.platform); | ||
return ['ios', 'iOS', 'iPhone OS'].indexOf(systemInfo.platform) > -1; | ||
} else if (isWeb) { | ||
@@ -53,0 +53,0 @@ return Boolean(navigator.userAgent.match(/(iphone|ipod|ipad)/i)); |
{ | ||
"name": "universal-env", | ||
"author": "rax", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"license": "BSD-3-Clause", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
@@ -41,3 +41,3 @@ // https://www.w3.org/TR/html5/webappapis.html#dom-navigator-appcodename | ||
if (isMiniApp || isWechatApp || isWeex) { | ||
return ['ios', 'iOS', 'iPhone OS'].includes(systemInfo.platform); | ||
return ['ios', 'iOS', 'iPhone OS'].indexOf(systemInfo.platform) > -1; | ||
} else if (isWeb) { | ||
@@ -44,0 +44,0 @@ return Boolean(navigator.userAgent.match(/(iphone|ipod|ipad)/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
12243