Skip to content

Documentation question regarding "warning" #99

Description

@LukeLeber

Quoting the warning from the documentation:

TL;DR: you should not use this library in your HTML page and it's less reliable when used server-side (Node.js)

What exactly does this mean? Should this project not be used anymore, or is there additional context around exactly what it should not be used for?

Our use case if determining the device class, such as...

console.log( md.mobile() );          // 'Sony'
console.log( md.phone() );           // 'Sony'
console.log( md.tablet() );          // null

Is this library still reliable enough to produce consistent results for this use case?

Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions