@levi-gemcommerce/analytics 1.0.0-dev.29 → 1.0.0-dev.30
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/esm/index.js +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/umd/index.js +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -21846,7 +21846,7 @@ function getVerticalLabels({ labels, characterWidths, longestLabelWidth, targetW
|
|
|
21846
21846
|
}
|
|
21847
21847
|
|
|
21848
21848
|
function getFontSize() {
|
|
21849
|
-
const isMobile = 'ontouchstart' in window || navigator.maxTouchPoints > 0;
|
|
21849
|
+
const isMobile = typeof window !== 'undefined' && ('ontouchstart' in window || navigator.maxTouchPoints > 0);
|
|
21850
21850
|
const fontSize = isMobile ? TOUCH_FONT_SIZE : FONT_SIZE;
|
|
21851
21851
|
return fontSize;
|
|
21852
21852
|
}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -21846,7 +21846,7 @@ function getVerticalLabels({ labels, characterWidths, longestLabelWidth, targetW
|
|
|
21846
21846
|
}
|
|
21847
21847
|
|
|
21848
21848
|
function getFontSize() {
|
|
21849
|
-
const isMobile = 'ontouchstart' in window || navigator.maxTouchPoints > 0;
|
|
21849
|
+
const isMobile = typeof window !== 'undefined' && ('ontouchstart' in window || navigator.maxTouchPoints > 0);
|
|
21850
21850
|
const fontSize = isMobile ? TOUCH_FONT_SIZE : FONT_SIZE;
|
|
21851
21851
|
return fontSize;
|
|
21852
21852
|
}
|