aurea-tracking-sdk 1.3.3 → 1.3.4

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
@@ -648,9 +648,13 @@ var AureaSDK = class {
648
648
  }
649
649
  } else {
650
650
  const aspectRatio = screenWidth / screenHeight;
651
+ const userAgent = navigator.userAgent.toLowerCase();
652
+ const isLaptopUA = userAgent.includes("macintosh") || // MacBooks
653
+ userAgent.includes("mac os x") || userAgent.includes("laptop") || userAgent.includes("windows") && userAgent.includes("touch") || // Windows laptops with touch
654
+ userAgent.includes("chromebook");
651
655
  if (screenWidth >= 2560 || aspectRatio >= 2.2) {
652
656
  deviceType = "Ultrawide";
653
- } else if (screenWidth < 1920) {
657
+ } else if (screenWidth <= 2048 && (isLaptopUA || screenWidth < 1920)) {
654
658
  deviceType = "Laptop";
655
659
  } else {
656
660
  deviceType = "Desktop";
package/dist/index.mjs CHANGED
@@ -619,9 +619,13 @@ var AureaSDK = class {
619
619
  }
620
620
  } else {
621
621
  const aspectRatio = screenWidth / screenHeight;
622
+ const userAgent = navigator.userAgent.toLowerCase();
623
+ const isLaptopUA = userAgent.includes("macintosh") || // MacBooks
624
+ userAgent.includes("mac os x") || userAgent.includes("laptop") || userAgent.includes("windows") && userAgent.includes("touch") || // Windows laptops with touch
625
+ userAgent.includes("chromebook");
622
626
  if (screenWidth >= 2560 || aspectRatio >= 2.2) {
623
627
  deviceType = "Ultrawide";
624
- } else if (screenWidth < 1920) {
628
+ } else if (screenWidth <= 2048 && (isLaptopUA || screenWidth < 1920)) {
625
629
  deviceType = "Laptop";
626
630
  } else {
627
631
  deviceType = "Desktop";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aurea-tracking-sdk",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "Standalone tracking SDK for Aurea CRM external funnels",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",