mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-03-01 12:44:37 +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)
|