Skip to content

Commit

Permalink
fix: remove mobile from regex
Browse files Browse the repository at this point in the history
  • Loading branch information
henry-deriv committed Jul 22, 2024
1 parent d86ebd9 commit dea425e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shared/src/utils/os/os_detect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const isDesktopOs = () => {

export const isMobileOs = () =>
(/android/i.test(navigator.userAgent.toLowerCase()) && /mobile/i.test(navigator.userAgent.toLowerCase())) ||
/webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini|mobile/i.test(navigator.userAgent);
/webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);

export const isTabletOs =
/ipad|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i.test(navigator.userAgent.toLowerCase()) ||
Expand Down

0 comments on commit dea425e

Please sign in to comment.