Skip to content

Commit

Permalink
fix(checks): isMobile for Chrome iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
stwind committed Jul 4, 2019
1 parent ba9cb94 commit 8216d48
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/checks/src/is-mobile.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export const isMobile = () =>
typeof navigator !== "undefined" &&
/mobile|tablet|ip(ad|hone|od)|android|silk/i.test(navigator.userAgent) &&
!/crios/i.test(navigator.userAgent);
/mobile|tablet|ip(ad|hone|od)|android|silk|crios/i.test(navigator.userAgent);

0 comments on commit 8216d48

Please sign in to comment.