monomi
monomi copied to clipboard
leverage a standard UA parsing library
the flaws of UA sniffing are due to 1) making assumptions about future UAs and 2) reinventing UA parsing and adding flaws.
for 2 you can at least leverage previous and robust work..
https://github.com/tobie/ua-parser uses ua-parser which comes from code Google uses to UA parse. plus it was ported by your colleague! :)
alternatively you could use https://github.com/bestiejs/platform.js/ which is the only other reliable parser in JS, IMO
Sounds good... though the project is 18 months old. So is this a pull request? :-)
it's certainly an opportunity for someone else. :)
/me fixes issue title