refactor and fix test

This commit is contained in:
Ryan Di
2025-10-27 21:44:15 +11:00
parent 67a37175a6
commit 2131b376cd
8 changed files with 99 additions and 124 deletions

View File

@@ -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