@myxplor/agent-detection

0.3.7 • Public • Published

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.

/@myxplor/agent-detection/

    Package Sidebar

    Install

    npm i @myxplor/agent-detection

    Weekly Downloads

    1

    Version

    0.3.7

    License

    Unlicense

    Unpacked Size

    5.36 kB

    Total Files

    8

    Last publish

    Collaborators

    • paulle77
    • t-raver9
    • arjun555
    • hjemmel
    • adam-xplor
    • roblaine