0.3.7 • Published 3 years ago

@myxplor/agent-detection v0.3.7

Weekly downloads
-
License
Unlicense
Repository
-
Last release
3 years ago

Agent detection

Currently this is just a simple regex to detect if the useragent is a mobile. We're considering iPads to be a mobile device.

Why?

As sometime on mobile we want a slightly different behavour. eg: We don't always want to autofocus an input. As this brings up the keyboard and can make it difficult for the user to get context.