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:
parent
8fd5310a53
commit
b7622cdb3a
@ -27,7 +27,7 @@
|
||||
, safari = /safari/i.test(ua) && !chrome && !phantom && !silk
|
||||
, android = /android/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)
|
||||
, seamonkey = /seamonkey\//i.test(ua)
|
||||
, webos = /(?:web|hpw)os/i.test(ua)
|
||||
@ -37,7 +37,7 @@
|
||||
, rimtablet = /rim\stablet/i.test(ua)
|
||||
, bada = /bada\//i.test(ua)
|
||||
, webkitVersion = /version\/(\d+(\.\d+)?)/i
|
||||
, firefoxVersion = /firefox[ \/](\d+(\.\d+)?)/i
|
||||
, firefoxVersion = /(?:firefox|iceweasel)[ \/](\d+(\.\d+)?)/i
|
||||
, mobile = /mobi/i.test(ua)
|
||||
, tablet = /tablet/i.test(ua)
|
||||
, o = {}
|
||||
|
@ -425,6 +425,20 @@ module.exports.useragents = {
|
||||
, version: '21.0'
|
||||
, 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: true
|
||||
, gecko: true
|
||||
|
Loading…
Reference in New Issue
Block a user