@os-design/is-touch-device
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -9,3 +9,3 @@ "use strict"; | ||
var isTouchDevice = function isTouchDevice() { | ||
return typeof window !== 'undefined' ? 'ontouchstart' in window || navigator.msMaxTouchPoints > 0 : false; | ||
return typeof window !== 'undefined' ? 'ontouchstart' in window || navigator.maxTouchPoints > 0 : false; | ||
}; | ||
@@ -12,0 +12,0 @@ |
@@ -1,4 +0,4 @@ | ||
const isTouchDevice = () => typeof window !== 'undefined' ? 'ontouchstart' in window || navigator.msMaxTouchPoints > 0 : false; | ||
const isTouchDevice = () => typeof window !== 'undefined' ? 'ontouchstart' in window || navigator.maxTouchPoints > 0 : false; | ||
export default isTouchDevice; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@os-design/is-touch-device", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"license": "UNLICENSED", | ||
@@ -33,3 +33,3 @@ "repository": "git@gitlab.com:os-team/libs/os-design.git", | ||
}, | ||
"gitHead": "990fa0eb8e38bbb94ebea1ba0c825574ff11fe5e" | ||
"gitHead": "f8ca9a29bb4131d35eff737da2c6b3bcb594c3b3" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3468