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

add some browsers from #73

fix #73
This commit is contained in:
Denis Demchenko 2016-05-09 10:18:11 +03:00
parent 891f98100f
commit 277202172b
3 changed files with 33 additions and 0 deletions

View File

@ -78,6 +78,8 @@ If detected, one of these flags may be set to true. The rendering engine flag i
* `ucbrowser` — [`webkit`] * `ucbrowser` — [`webkit`]
* `qupzilla` — [`webkit`] * `qupzilla` — [`webkit`]
* `vivaldi` — [`webkit`] * `vivaldi` — [`webkit`]
* `sleipnir` — [`blink`]
* `kMeleon` — [`gecko`]
For all detected browsers the browser version is set in the `version` field. For all detected browsers the browser version is set in the `version` field.

View File

@ -96,6 +96,20 @@
, version: getFirstMatch(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i) , version: getFirstMatch(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)
} }
} }
else if (/sleipnir/i.test(ua)) {
result = {
name: 'Sleipnir'
, sleipnir: t
, version: getFirstMatch(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)
}
}
else if (/k-meleon/i.test(ua)) {
result = {
name: 'K-Meleon'
, kMeleon: t
, version: getFirstMatch(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)
}
}
else if (windowsphone) { else if (windowsphone) {
result = { result = {
name: 'Windows Phone' name: 'Windows Phone'

View File

@ -1214,5 +1214,22 @@ module.exports.useragents = {
, version: '3.7' , version: '3.7'
, x: true , x: true
} }
}, 'Sleipnir': {
'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 Sleipnir/6.1.4': {
sleipnir: true
, blink: true
, windows: true
, x: true
, version: '6.1.4'
}
}
, 'K-Meleon': {
'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20140105 Firefox/24.0 K-Meleon/74.0': {
windows: true
, kMeleon: true
, version: '74.0'
, gecko: true
, x: true
}
} }
} }