From 891f98100f1b0ab7fed15596f6c404c7671ca846 Mon Sep 17 00:00:00 2001 From: Denis Demchenko Date: Mon, 9 May 2016 10:02:04 +0300 Subject: [PATCH] add Puffin detection fix #68 --- src/bowser.js | 7 +++++++ src/useragents.js | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/src/bowser.js b/src/bowser.js index 50ed7ce..985dd14 100644 --- a/src/bowser.js +++ b/src/bowser.js @@ -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' diff --git a/src/useragents.js b/src/useragents.js index bc119af..f1832c9 100644 --- a/src/useragents.js +++ b/src/useragents.js @@ -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 + } + } }