1
0
mirror of https://github.com/lancedikson/bowser synced 2025-06-13 13:03:52 +00:00
This commit is contained in:
William Roe 2012-10-30 09:06:24 -07:00
commit a58b564191

View File

@ -74,20 +74,22 @@
} }
return o return o
} }
if (android) return { if (webkitVersion.test(ua)) {
webkit: t if (android) return {
, android: t webkit: t
, mobile: t , android: t
, version: ua.match(webkitVersion)[1] , mobile: t
} , version: ua.match(webkitVersion)[1]
if (safari) return { }
webkit: t if (safari) return {
, safari: t webkit: t
, version: ua.match(webkitVersion)[1] , safari: t
} , version: ua.match(webkitVersion)[1]
if (opera) return { }
opera: t if (opera) return {
, version: ua.match(webkitVersion)[1] opera: t
, version: ua.match(webkitVersion)[1]
}
} }
if (gecko) { if (gecko) {
o = { o = {
@ -96,6 +98,10 @@
, version: ua.match(/firefox\/(\d+(\.\d+)?)/i)[1] , version: ua.match(/firefox\/(\d+(\.\d+)?)/i)[1]
} }
if (firefox) o.firefox = t if (firefox) o.firefox = t
if (android) {
o.android = t
o.mobile = t
}
return o return o
} }
if (seamonkey) return { if (seamonkey) return {