Skip to content

Commit

Permalink
add Puffin detection
Browse files Browse the repository at this point in the history
fix #68
  • Loading branch information
lancedikson committed May 9, 2016
1 parent 78ee04f commit 891f981
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/bowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@
, 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) {
result = {
name: 'Windows Phone'
Expand Down
9 changes: 9 additions & 0 deletions src/useragents.js
Original file line number Diff line number Diff line change
Expand Up @@ -1206,4 +1206,13 @@ module.exports.useragents = {
, 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
}
}
}

0 comments on commit 891f981

Please sign in to comment.