@braintree/browser-detection 1.13.0 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,12 +8,8 @@ module.exports = function isIosWebview(ua) {
8
8
  if (isIosGoogleSearchApp(ua)) {
9
9
  return true;
10
10
  }
11
- return (
12
11
  // Historically, a webview could be identified by the presence of AppleWebKit and _no_ presence of Safari after.
13
- /.+AppleWebKit(?!.*Safari)/i.test(ua) ||
14
- // 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.
15
- (ua.indexOf("Safari") > -1 &&
16
- (!window.safari || !window.safari.pushNotification)));
12
+ return /.+AppleWebKit(?!.*Safari)/i.test(ua);
17
13
  }
18
14
  return false;
19
15
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@braintree/browser-detection",
3
- "version": "1.13.0",
3
+ "version": "1.14.0",
4
4
  "description": "A small lib to detect browser compatibility for braintree products",
5
5
  "main": "dist/browser-detection.js",
6
6
  "types": "dist/browser-detection.d.ts",