Skip to content

Commit

Permalink
chore: fixup regex for ios
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Oct 11, 2024
1 parent 8396077 commit e6a2df9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ng-event-plugins/src/utils/is-ios.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const isIos = ({userAgent, maxTouchPoints}: Navigator): boolean =>
/ipad|iphone|ipod|mac/i.test(userAgent) ||
/ipad|iphone|ipod/i.test(userAgent) ||
(/^((?!chrome|android).)*safari/i.test(userAgent) && maxTouchPoints > 1);

0 comments on commit e6a2df9

Please sign in to comment.