This commit is contained in:
Yidadaa
2023-04-21 01:18:49 +08:00
parent 31048f7d77
commit 1226f7e160
2 changed files with 3 additions and 2 deletions

View File

@@ -66,6 +66,9 @@ export function useMobileScreen() {
}
export function isMobileScreen() {
if (typeof window === "undefined") {
return false;
}
return window.innerWidth <= 600;
}