mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-08 14:54:31 +01:00
refactor and fix test
This commit is contained in:
@@ -80,7 +80,7 @@ export const isTabletBreakpoint = (
|
||||
return minSide >= MQ_MIN_TABLET && maxSide <= MQ_MAX_TABLET;
|
||||
};
|
||||
|
||||
export const isMobileOrTablet = (): boolean => {
|
||||
const isMobileOrTablet = (): boolean => {
|
||||
const ua = navigator.userAgent || "";
|
||||
const platform = navigator.platform || "";
|
||||
const uaData = (navigator as any).userAgentData as
|
||||
|
||||
Reference in New Issue
Block a user