1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

Firefox for Android

This commit is contained in:
Pierre Bertet 2013-08-16 11:38:30 +01:00
parent 23545d4403
commit f5d91976f4

View File

@ -30,6 +30,7 @@
, gecko = /gecko\//i.test(ua) , gecko = /gecko\//i.test(ua)
, seamonkey = /seamonkey\//i.test(ua) , seamonkey = /seamonkey\//i.test(ua)
, webkitVersion = /version\/(\d+(\.\d+)?)/i , webkitVersion = /version\/(\d+(\.\d+)?)/i
, firefoxVersion = /firefox\/(\d+(\.\d+)?)/i
, o , o
function detect() { function detect() {
@ -66,7 +67,7 @@
webkit: t webkit: t
, android: t , android: t
, mobile: t , mobile: t
, version: ua.match(webkitVersion)[1] , version: (ua.match(webkitVersion) || ua.match(firefoxVersion))[1]
} }
if (safari) return { if (safari) return {
webkit: t webkit: t
@ -81,7 +82,7 @@
o = { o = {
gecko: t gecko: t
, mozilla: t , mozilla: t
, version: ua.match(/firefox\/(\d+(\.\d+)?)/i)[1] , version: ua.match(firefoxVersion)[1]
} }
if (firefox) o.firefox = t if (firefox) o.firefox = t
return o return o