Skip to content

Commit

Permalink
fix(useIsMobile): remove Windows Mobile (discontinued)
Browse files Browse the repository at this point in the history
  • Loading branch information
bludnic committed Jun 4, 2024
1 parent 6c8e570 commit a8cc9da
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/hooks/useIsMobile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ export function useIsMobile() {
const browser = detect()
const isMobileDevice =
browser && browser.os
? ['android os', 'ios', 'blackberry os', 'windows mobile'].includes(
browser.os.toLowerCase()
)
? ['android os', 'ios', 'blackberry os'].includes(browser.os.toLowerCase())
: false
return isMobileDevice || window.innerWidth < 450
}
Expand Down

0 comments on commit a8cc9da

Please sign in to comment.