forked from abner/for-legacy-web
Add logic to "log out of all others".
Consider tablet as desktop device.
This commit is contained in:
1 parent
a3fa0b0807
commit
69193e9a46
2 files changed
+22
-2
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import { isDesktop, isMobile, isTablet } from "react-device-detect";
|
||||
|
||||
export const isTouchscreenDevice =
|
||||
isDesktop && !isTablet
|
||||
(isDesktop || isTablet)
|
||||
? false
|
||||
: (typeof window !== "undefined"
|
||||
? navigator.maxTouchPoints > 0
|
||||
|
||||
Reference in new issue
Block a user