1
0
mirror of https://github.com/lancedikson/bowser synced 2026-03-02 03:40:27 +00:00

added tests for seamonkey and fixed detection

This commit is contained in:
BendingBender
2014-02-21 00:30:09 +01:00
parent 4acca40a99
commit 1a22035c5b
4 changed files with 49 additions and 17 deletions

View File

@@ -137,14 +137,19 @@
, mozilla: t
, version: ((v = ua.match(firefoxVersion)) && v? v[1] : 0)
}
if (firefox) {
o.name = 'Firefox';
o.firefox = t;
if (seamonkey) {
o.name = 'SeaMonkey'
o.seamonkey = t
o.version = ua.match(/seamonkey\/(\d+(\.\d+)?)/i)[1]
} else if (firefox) {
o.name = 'Firefox'
o.firefox = t
}
if (android) {
o.android = t
o.mobile = t
}
}
else if (android) o = {
name: 'Android'
@@ -159,11 +164,6 @@
, safari: t
, version: ((v = ua.match(webkitVersion)) ? v[1] : 0)
}
else if (seamonkey) o = {
name: 'SeaMonkey'
, seamonkey: t
, version: ua.match(/seamonkey\/(\d+(\.\d+)?)/i)[1]
}
// Graded Browser Support
// http://developer.yahoo.com/yui/articles/gbs