mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-14 11:15:02 -05:00
8 lines
269 B
TypeScript
8 lines
269 B
TypeScript
|
import { isDesktop, isMobile, isTablet } from "react-device-detect";
|
||
|
export const isTouchscreenDevice =
|
||
|
isDesktop && !isTablet
|
||
|
? false
|
||
|
: (typeof window !== "undefined"
|
||
|
? navigator.maxTouchPoints > 0
|
||
|
: false) || isMobile;
|