From e817fd67a7156c146299148fef31f1800623bb62 Mon Sep 17 00:00:00 2001 From: Denis Demchenko Date: Thu, 19 May 2016 00:57:34 +0300 Subject: [PATCH] add SlimerJS support close #141 --- src/bowser.js | 7 +++++++ src/useragents.js | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/src/bowser.js b/src/bowser.js index adb1130..d966269 100644 --- a/src/bowser.js +++ b/src/bowser.js @@ -191,6 +191,13 @@ , version: getFirstMatch(/phantomjs\/(\d+(\.\d+)?)/i) } } + else if (/slimerjs/i.test(ua)) { + result = { + name: 'SlimerJS' + , slimer: t + , version: getFirstMatch(/slimerjs\/(\d+(\.\d+)?)/i) + } + } else if (/blackberry|\bbb\d+/i.test(ua) || /rim\stablet/i.test(ua)) { result = { name: 'BlackBerry' diff --git a/src/useragents.js b/src/useragents.js index c5e6b33..0ffea38 100644 --- a/src/useragents.js +++ b/src/useragents.js @@ -1248,4 +1248,13 @@ module.exports.useragents = { , x: true } } + , 'SlimerJS' : { + 'Mozilla/5.0 (X11; Linux x86_64; rv:21.0) Gecko/20100101 SlimerJS/0.7': { + linux: true + , slimer: true + , version: '0.7' + , gecko: true + , x: true + } + } }