mirror of
https://github.com/lancedikson/bowser
synced 2025-06-13 13:03:52 +00:00
Only try to extract webkitVersion if that matches. Firefox/Gecko on Android is a real thing
This commit is contained in:
parent
23545d4403
commit
560bb47544
@ -74,6 +74,7 @@
|
||||
}
|
||||
return o
|
||||
}
|
||||
if (webkitVersion.test(ua)) {
|
||||
if (android) return {
|
||||
webkit: t
|
||||
, android: t
|
||||
@ -89,6 +90,7 @@
|
||||
opera: t
|
||||
, version: ua.match(webkitVersion)[1]
|
||||
}
|
||||
}
|
||||
if (gecko) {
|
||||
o = {
|
||||
gecko: t
|
||||
@ -96,6 +98,10 @@
|
||||
, version: ua.match(/firefox\/(\d+(\.\d+)?)/i)[1]
|
||||
}
|
||||
if (firefox) o.firefox = t
|
||||
if (android) {
|
||||
o.android = t
|
||||
o.mobile = t
|
||||
}
|
||||
return o
|
||||
}
|
||||
if (seamonkey) return {
|
||||
|
Loading…
Reference in New Issue
Block a user