1
0
mirror of https://github.com/lancedikson/bowser synced 2026-03-02 03:40:27 +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)
}
}
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'