You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Today is("Safari") is does not catch variants like Mobile Safari. That's one example I came across but now I'm wondering if I'm missing other cases.
Describe the solution you'd like
It would be nice to have a helper function similar to is() but doing string matching instead of equality (eg. match()). I imagine that'd also help for Windows and Windows Phone and some other cases.
Describe alternatives you've considered
Right now I'm doing is("Safari") || is("Mobile Safari") but that feels a little precarious.
Thanks
The text was updated successfully, but these errors were encountered:
maphe
changed the title
Catch "Safari" and "Safari" mobile in a single check
Catch "Safari" and "Safari Mobile" in a single check
Oct 18, 2023
Is your feature request related to a problem? Please describe.
Today
is("Safari")
is does not catch variants likeMobile Safari
. That's one example I came across but now I'm wondering if I'm missing other cases.Describe the solution you'd like
It would be nice to have a helper function similar to
is()
but doing string matching instead of equality (eg.match()
). I imagine that'd also help forWindows
andWindows Phone
and some other cases.Describe alternatives you've considered
Right now I'm doing
is("Safari") || is("Mobile Safari")
but that feels a little precarious.Thanks
The text was updated successfully, but these errors were encountered: