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.js
CHANGED
|
@@ -551,7 +551,13 @@ var isIosDevice = () => {
|
|
|
551
551
|
if (isClient() === false) {
|
|
552
552
|
return false;
|
|
553
553
|
}
|
|
554
|
-
|
|
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";
|