hgoebl / mobile-detect.js

Device detection (phone, tablet, desktop, mobile grade, os, versions)
http://hgoebl.github.io/mobile-detect.js/
MIT License
4.12k stars 892 forks source link

Is the library broken? #73

Closed AvraamMavridis closed 6 years ago

AvraamMavridis commented 6 years ago

Issue

Seems that many of the libraries functions returns null, even on the demo page:

screen shot 2018-01-02 at 13 53 18

e.g. md.userAgent()

Is a bug on the library or is a change on Chrome/Firefox that broke it?

hgoebl commented 6 years ago

I really hope that it's not broken. And I also think that it's OK. Maybe the demo (not included in this project) is out-dated. Try this:

http://hgoebl.github.io/mobile-detect.js/check/

Please keep in mind that the library's target is "mobile", so when using desktop browsers, most features won't work as one might expect.

AvraamMavridis commented 6 years ago

Please keep in mind that the library's target is "mobile", so when using desktop browsers, most features won't work as one might expect.

I see, probably that's the issue, I dont see the user agent on desktop. Thx.

virtualbjorn commented 5 years ago

Is it possible to extend its feature to desktop as well?

This is a really great plugin and such feature will improve its usability more.

hgoebl commented 5 years ago

Probably not. There is not much contribution to this project and the "mother"-project written in PHP. It's kind of starving, I'm afraid.