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

add NAVER Whale browser (based on blink engine)

This commit is contained in:
Chanhyun,Roh 2018-04-18 17:26:42 +09:00
parent 6bbdaf99f0
commit b66fc8a524
3 changed files with 19 additions and 0 deletions

View File

@ -134,6 +134,7 @@ If detected, one of these flags may be set to true. The rendering engine flag i
* `vivaldi` — [`blink`] * `vivaldi` — [`blink`]
* `sleipnir` — [`blink`] * `sleipnir` — [`blink`]
* `kMeleon` — [`gecko`] * `kMeleon` — [`gecko`]
* `Whale` — [`blink`]
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

@ -71,6 +71,13 @@
, version: versionIdentifier || getFirstMatch(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i) , version: versionIdentifier || getFirstMatch(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)
} }
} }
else if (/Whale/i.test(ua)) {
result = {
name: 'NAVER Whale browser'
, whale: t
, version: getFirstMatch(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)
}
}
else if (/coast/i.test(ua)) { else if (/coast/i.test(ua)) {
result = { result = {
name: 'Opera Coast' name: 'Opera Coast'
@ -424,6 +431,7 @@
(result.vivaldi && result.version >= 1.0) || (result.vivaldi && result.version >= 1.0) ||
(result.chrome && result.version >= 20) || (result.chrome && result.version >= 20) ||
(result.samsungBrowser && result.version >= 4) || (result.samsungBrowser && result.version >= 4) ||
(result.whale && compareVersions([result.version, '1.0']) === 1) ||
(result.firefox && result.version >= 20.0) || (result.firefox && result.version >= 20.0) ||
(result.safari && result.version >= 6) || (result.safari && result.version >= 6) ||
(result.opera && result.version >= 10.0) || (result.opera && result.version >= 10.0) ||

View File

@ -1573,5 +1573,15 @@ module.exports.useragents = {
, a: true , a: true
, blink: true , blink: true
} }
}, 'NAVER Whale browser' : {
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Whale/1.0.40.10 Safari/537.36': {
osname: 'macOS'
, whale: true
, mac: true
, osversion: '10.12.6'
, version: '1.0.40.10'
, blink: true
, a: true
}
} }
} }