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

add Puffin detection

fix #68
This commit is contained in:
Denis Demchenko 2016-05-09 10:02:04 +03:00
parent 78ee04fa37
commit 891f98100f
2 changed files with 16 additions and 0 deletions

View File

@ -89,6 +89,13 @@
, version: getFirstMatch(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i) , version: getFirstMatch(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)
} }
} }
else if (/puffin/i.test(ua)) {
result = {
name: 'Puffin'
, puffin: t
, version: getFirstMatch(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)
}
}
else if (windowsphone) { else if (windowsphone) {
result = { result = {
name: 'Windows Phone' name: 'Windows Phone'

View File

@ -1206,4 +1206,13 @@ module.exports.useragents = {
, linux: true , linux: true
} }
} }
, 'Puffin': {
'Mozilla/5.0 (X11; U; Linux x86_64; zh-TW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.114 Safari/537.36 Puffin/3.7.0IT': {
linux: true
, blink: true
, puffin: true
, version: '3.7'
, x: true
}
}
} }