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