mirror of
https://github.com/revoltchat/revite.git
synced 2024-09-20 01:57:12 -04:00
69193e9a46
Consider tablet as desktop device.
8 lines
271 B
TypeScript
8 lines
271 B
TypeScript
import { isDesktop, isMobile, isTablet } from "react-device-detect";
|
|
|
|
export const isTouchscreenDevice =
|
|
(isDesktop || isTablet)
|
|
? false
|
|
: (typeof window !== "undefined"
|
|
? navigator.maxTouchPoints > 0
|
|
: false) || isMobile;
|