Merge pull request #1777 from yanCode/chore/cleanup

chore: remove unused code
This commit is contained in:
Yifei Zhang
2023-05-29 16:07:14 +08:00
committed by GitHub

View File

@@ -98,13 +98,6 @@ export function useMobileScreen() {
return width <= MOBILE_MAX_WIDTH;
}
export function isMobileScreen() {
if (typeof window === "undefined") {
return false;
}
return window.innerWidth <= MOBILE_MAX_WIDTH;
}
export function isFirefox() {
return (
typeof navigator !== "undefined" && /firefox/i.test(navigator.userAgent)