Skip to content

Commit

Permalink
Merge pull request #121 from kaimallea/move-universal
Browse files Browse the repository at this point in the history
improvement: move appleUniversal from any to apple.device
  • Loading branch information
kaimallea authored Apr 11, 2020
2 parents 14858ae + 3542857 commit dcc5cce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/isMobile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ export default function isMobile(userAgent?: string): isMobileResult {
tablet: !match(appleIphone) && match(appleTablet) && !match(windowsPhone),
universal: match(appleUniversal),
device:
(match(appleIphone) || match(appleIpod) || match(appleTablet)) &&
(match(appleIphone) ||
match(appleIpod) ||
match(appleTablet) ||
match(appleUniversal)) &&
!match(windowsPhone),
},
amazon: {
Expand Down Expand Up @@ -132,7 +135,6 @@ export default function isMobile(userAgent?: string): isMobileResult {
};

result.any =
result.apple.universal ||
result.apple.device ||
result.android.device ||
result.windows.device ||
Expand Down
2 changes: 1 addition & 1 deletion types/isMobile.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dcc5cce

Please sign in to comment.