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

added detection and tests for firefox on firefox os

This commit is contained in:
BendingBender 2014-02-21 00:54:32 +01:00
parent 1a22035c5b
commit 24dd55d9b4
2 changed files with 31 additions and 2 deletions

View File

@ -148,8 +148,10 @@
if (android) {
o.android = t
o.mobile = t
} else if (!android && firefox && /\((mobile|tablet);.*rv:[\d\.]+\)/i.test(ua)) {
o.firefoxos = t
o.mobile = t
}
}
else if (android) o = {
name: 'Android'

View File

@ -320,7 +320,34 @@ module.exports.useragents = {
}
}
, Firefox: {
'Mozilla/5.0 (Android; Mobile; rv:27.0) Gecko/27.0 Firefox/27.0': {
'Mozilla/5.0 (Mobile; rv:26.0) Gecko/26.0 Firefox/26.0': {
mozilla: true
, gecko: true
, firefox: true
, version: '26.0'
, mobile: true
, firefoxos: true
, a: true
}
, 'Mozilla/5.0 (Tablet; rv:26.0) Gecko/26.0 Firefox/26.0': {
mozilla: true
, gecko: true
, firefox: true
, version: '26.0'
, mobile: true
, firefoxos: true
, a: true
}
, 'Mozilla/5.0 (Mobile; LG-D300; rv:18.1) Gecko/18.1 Firefox/18.1': {
mozilla: true
, gecko: true
, firefox: true
, version: '18.1'
, mobile: true
, firefoxos: true
, a: true
}
, 'Mozilla/5.0 (Android; Mobile; rv:27.0) Gecko/27.0 Firefox/27.0': {
mozilla: true
, gecko: true
, firefox: true