Skip to content

Commit

Permalink
Merge pull request ChatGPTNextWeb#1777 from yanCode/chore/cleanup
Browse files Browse the repository at this point in the history
chore: remove unused code
  • Loading branch information
Yidadaa authored May 29, 2023
2 parents 6bd75fa + 7ac03b4 commit 6b5e5a1
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions app/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6b5e5a1

Please sign in to comment.