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.cjs +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/utils/user-agent-utils.cjs +7 -1
- package/dist/utils/user-agent-utils.cjs.map +1 -1
- package/dist/utils/user-agent-utils.js +7 -1
- package/dist/utils/user-agent-utils.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -558,7 +558,13 @@ var isIosDevice = () => {
|
|
|
558
558
|
if (isClient() === false) {
|
|
559
559
|
return false;
|
|
560
560
|
}
|
|
561
|
-
|
|
561
|
+
const ua = navigator.userAgent;
|
|
562
|
+
if (/Android/i.test(ua)) {
|
|
563
|
+
return false;
|
|
564
|
+
}
|
|
565
|
+
const isDirectIOS = /iPhone|iPad|iPod/i.test(ua);
|
|
566
|
+
const isIPadOS = navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1;
|
|
567
|
+
return isDirectIOS || isIPadOS;
|
|
562
568
|
};
|
|
563
569
|
var isAndroidWebView = () => {
|
|
564
570
|
return getDspExecutionEnvironment() === "android-webview";
|