mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
parent
891f98100f
commit
277202172b
@ -78,6 +78,8 @@ If detected, one of these flags may be set to true. The rendering engine flag i
|
||||
* `ucbrowser` — [`webkit`]
|
||||
* `qupzilla` — [`webkit`]
|
||||
* `vivaldi` — [`webkit`]
|
||||
* `sleipnir` — [`blink`]
|
||||
* `kMeleon` — [`gecko`]
|
||||
|
||||
For all detected browsers the browser version is set in the `version` field.
|
||||
|
||||
|
@ -96,6 +96,20 @@
|
||||
, 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) {
|
||||
result = {
|
||||
name: 'Windows Phone'
|
||||
|
@ -1214,5 +1214,22 @@ module.exports.useragents = {
|
||||
, version: '3.7'
|
||||
, 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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user