sales-frontend-utils 0.0.47 → 0.0.48

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.
package/dist/index.js CHANGED
@@ -551,7 +551,13 @@ var isIosDevice = () => {
551
551
  if (isClient() === false) {
552
552
  return false;
553
553
  }
554
- return /iPhone|iPad|iPod/i.test(navigator.userAgent);
554
+ const ua = navigator.userAgent;
555
+ if (/Android/i.test(ua)) {
556
+ return false;
557
+ }
558
+ const isDirectIOS = /iPhone|iPad|iPod/i.test(ua);
559
+ const isIPadOS = navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1;
560
+ return isDirectIOS || isIPadOS;
555
561
  };
556
562
  var isAndroidWebView = () => {
557
563
  return getDspExecutionEnvironment() === "android-webview";