browser-info
Advanced tools
Comparing version 0.0.4 to 0.1.0
@@ -22,5 +22,8 @@ /* globals navigator*/ | ||
} | ||
if (ua.indexOf('Linux' )!== -1) { | ||
if (ua.indexOf('Linux' ) !== -1) { | ||
os = 'Linux'; | ||
} | ||
if (ua.indexOf('Android') !== -1) { | ||
os = 'Android'; | ||
} | ||
@@ -27,0 +30,0 @@ if (/trident/i.test(match[1])) { |
{ | ||
"name": "browser-info", | ||
"version": "0.0.4", | ||
"version": "0.1.0", | ||
"description": "Get browser info", | ||
@@ -5,0 +5,0 @@ "author": "Steve Lacy <me@slacy.me> (http://slacy.me)", |
@@ -19,2 +19,10 @@ 'use strict'; | ||
it('should detect Android', function(done) { | ||
GLOBAL.navigator = { | ||
userAgent: 'Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.23 Mobile Safari/537.36' | ||
}; | ||
should(info().os).equal('Android'); | ||
done(); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4572
72