@myxplor/agent-detection
v0.3.7
Published
Currently this is just a simple regex to detect if the useragent is a mobile. We're considering `iPads` to be a mobile device.
Downloads
3
Keywords
Readme
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.