http-browserdetect icon indicating copy to clipboard operation
http-browserdetect copied to clipboard

UC Browser is incorrectly identified as Chrome

Open pederkronsgaard opened this issue 6 years ago • 3 comments

It appears like UC Browser is incorrectly identified as Chrome since the User Agent may contain Chrome/ before UCBrowser/.

Example:

Mozilla/5.0 (Linux; U; Android 6.0.1; zh-CN; F5121 Build/34.0.A.1.247) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/40.0.2214.89 UCBrowser/11.5.1.944 Mobile Safari/537.36

I believe the solution is to check for ucbrowser before chrome/ similar to brave and silk.

pederkronsgaard avatar Dec 20 '19 12:12 pederkronsgaard

Thanks! I'd accept a pull request for this. :)

oalders avatar Dec 20 '19 14:12 oalders

Hey! I am interested in the fix too. Please review my PR - https://github.com/oalders/http-browserdetect/pull/189 Thanks!

Closed via #189

oalders avatar Aug 03 '21 15:08 oalders