mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 07:58:45 +03:00
Only set browser as Chromium if no other brand was found
This commit is contained in:
parent
b09878934f
commit
1e80cf3533
@ -991,8 +991,8 @@
|
||||
if (brands) {
|
||||
for (var i in brands) {
|
||||
var brandName = brands[i].brand,
|
||||
brandVersion = brands[i].version;
|
||||
if (!/not.a.brand/i.test(brandName) || /chromi/i.test(this.get(NAME))) {
|
||||
brandVersion = brands[i].version
|
||||
if (!/not.a.brand/i.test(brandName) && i < 1 || /chromi/i.test(this.get(NAME))) {
|
||||
this.set(NAME, strip(GOOGLE+' ', brandName))
|
||||
.set(VERSION, brandVersion)
|
||||
.set(MAJOR, majorize(brandVersion));
|
||||
|
Loading…
x
Reference in New Issue
Block a user