1
0
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:
William Roe 2012-10-30 15:53:42 +00:00
parent 23545d4403
commit 560bb47544

View File

@ -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 {