Firefox for Android

pull/22/head
Pierre Bertet 11 years ago
parent 23545d4403
commit f5d91976f4

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

Loading…
Cancel
Save