npm.io
0.3.7 • Published 5 years ago

@myxplor/agent-detection

Licence
Unlicense
Version
0.3.7
Deps
0
Size
5 kB
Vulns
0
Weekly
0

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.