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

added detection for iceweasel, detecting it as firefox, no extra flags added

This commit is contained in:
BendingBender 2014-02-25 01:05:55 +01:00
parent 8fd5310a53
commit b7622cdb3a
2 changed files with 16 additions and 2 deletions

View File

@ -27,7 +27,7 @@
, safari = /safari/i.test(ua) && !chrome && !phantom && !silk , safari = /safari/i.test(ua) && !chrome && !phantom && !silk
, android = /android/i.test(ua) , android = /android/i.test(ua)
, opera = /opera/i.test(ua) || /opr/i.test(ua) , opera = /opera/i.test(ua) || /opr/i.test(ua)
, firefox = /firefox/i.test(ua) , firefox = /(firefox|iceweasel)/i.test(ua)
, gecko = /gecko\//i.test(ua) , gecko = /gecko\//i.test(ua)
, seamonkey = /seamonkey\//i.test(ua) , seamonkey = /seamonkey\//i.test(ua)
, webos = /(?:web|hpw)os/i.test(ua) , webos = /(?:web|hpw)os/i.test(ua)
@ -37,7 +37,7 @@
, rimtablet = /rim\stablet/i.test(ua) , rimtablet = /rim\stablet/i.test(ua)
, bada = /bada\//i.test(ua) , bada = /bada\//i.test(ua)
, webkitVersion = /version\/(\d+(\.\d+)?)/i , webkitVersion = /version\/(\d+(\.\d+)?)/i
, firefoxVersion = /firefox[ \/](\d+(\.\d+)?)/i , firefoxVersion = /(?:firefox|iceweasel)[ \/](\d+(\.\d+)?)/i
, mobile = /mobi/i.test(ua) , mobile = /mobi/i.test(ua)
, tablet = /tablet/i.test(ua) , tablet = /tablet/i.test(ua)
, o = {} , o = {}

View File

@ -425,6 +425,20 @@ module.exports.useragents = {
, version: '21.0' , version: '21.0'
, a: true , a: true
} }
, 'Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20121202 Firefox/17.0 Iceweasel/17.0.1': {
mozilla: true
, gecko: true
, firefox: true
, version: '17.0'
, a: true
}
, 'Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120724 Debian Iceweasel/15.0': {
mozilla: true
, gecko: true
, firefox: true
, version: '15.0'
, a: true
}
, 'Mozilla/5.0 (Windows NT 6.2; WOW64; rv:15.0) Gecko/20120910144328 Firefox/15.0.2': { , 'Mozilla/5.0 (Windows NT 6.2; WOW64; rv:15.0) Gecko/20120910144328 Firefox/15.0.2': {
mozilla: true mozilla: true
, gecko: true , gecko: true