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

add SlimerJS support

close #141
This commit is contained in:
Denis Demchenko 2016-05-19 00:57:34 +03:00
parent 6749f62528
commit e817fd67a7
2 changed files with 16 additions and 0 deletions

View File

@ -191,6 +191,13 @@
, version: getFirstMatch(/phantomjs\/(\d+(\.\d+)?)/i) , 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)) { else if (/blackberry|\bbb\d+/i.test(ua) || /rim\stablet/i.test(ua)) {
result = { result = {
name: 'BlackBerry' name: 'BlackBerry'

View File

@ -1248,4 +1248,13 @@ module.exports.useragents = {
, x: true , 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
}
}
} }