diginext-utils 2.0.30 → 2.0.31
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/device/index.js +1 -1
- package/esm/device/index.js +1 -1
- package/package.json +1 -1
- package/src/device/index.ts +1 -1
package/dist/device/index.js
CHANGED
|
@@ -22,7 +22,7 @@ const isTablet = () => {
|
|
|
22
22
|
return null;
|
|
23
23
|
if (typeof window == "undefined")
|
|
24
24
|
return null;
|
|
25
|
-
return (0, exports.isMobile)() && window.innerWidth >
|
|
25
|
+
return (0, exports.isMobile)() && window.innerWidth > 599;
|
|
26
26
|
};
|
|
27
27
|
exports.isTablet = isTablet;
|
|
28
28
|
const isMobile = () => {
|
package/esm/device/index.js
CHANGED
|
@@ -17,7 +17,7 @@ export const isTablet = () => {
|
|
|
17
17
|
return null;
|
|
18
18
|
if (typeof window == "undefined")
|
|
19
19
|
return null;
|
|
20
|
-
return isMobile() && window.innerWidth >
|
|
20
|
+
return isMobile() && window.innerWidth > 599;
|
|
21
21
|
};
|
|
22
22
|
export const isMobile = () => {
|
|
23
23
|
if (typeof navigator == "undefined")
|
package/package.json
CHANGED
package/src/device/index.ts
CHANGED
|
@@ -16,7 +16,7 @@ export const isTablet = () => {
|
|
|
16
16
|
if (typeof navigator == "undefined") return null;
|
|
17
17
|
if (typeof window == "undefined") return null;
|
|
18
18
|
|
|
19
|
-
return isMobile() && window.innerWidth >
|
|
19
|
+
return isMobile() && window.innerWidth > 599;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
export const isMobile = () => {
|