mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-03-01 12:44:28 +00:00
4 lines
165 B
JavaScript
4 lines
165 B
JavaScript
export const isTouchDevice = () =>
|
|
typeof window !== 'undefined' &&
|
|
('ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0)
|