@braintree/browser-detection
Advanced tools
Comparing version 1.13.0 to 1.14.0
@@ -11,10 +11,6 @@ "use strict"; | ||
} | ||
return ( | ||
// Historically, a webview could be identified by the presence of AppleWebKit and _no_ presence of Safari after. | ||
/.+AppleWebKit(?!.*Safari)/i.test(ua) || | ||
// A webview can now have 'Safari', but if it does, then we want to check the `safari` window prop as webviews won't have it. | ||
(ua.indexOf("Safari") > -1 && | ||
(!window.safari || !window.safari.pushNotification))); | ||
return /.+AppleWebKit(?!.*Safari)/i.test(ua); | ||
} | ||
return false; | ||
}; |
{ | ||
"name": "@braintree/browser-detection", | ||
"version": "1.13.0", | ||
"version": "1.14.0", | ||
"description": "A small lib to detect browser compatibility for braintree products", | ||
@@ -5,0 +5,0 @@ "main": "dist/browser-detection.js", |
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
19684
383