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

Let me risk a little more light.

This commit is contained in:
Hannes Diercks 2013-09-13 16:19:03 +02:00
parent 5376cc67dc
commit 43953fc11f
2 changed files with 32 additions and 4 deletions

View File

@ -10,14 +10,25 @@ if (bowser.msie && bowser.version <= 6) {
} }
``` ```
Detected Browsers Detected Browsers and Devices
----- -----
* msie * android
* safari[webkit] * blackberry
* chrome[webkit] * chrome[webkit]
* firefox[gecko] * firefox[gecko]
* ipad
* iphone
* ipod
* msie
* opera * opera
* phantomjs
* safari[webkit]
* seamonkey
* touchpad
* webos
* windows phone
Notes Notes
---- ----
@ -61,3 +72,19 @@ else if (bowser.c) {
else { else {
// unsupported (bowser.x) // unsupported (bowser.x)
} }
```
Building
--------
Simply `$ npm install` and `$ make` inside the bowser folder.
Testing
-------
We started a list `src/useragents.js` with example user agents and their expected bowser object.
Whenever you add support for new browsers or notice a bug / mismatch, please update the list and
check if all tests are still passing.
To run the test call `$ make test` and hope for green light ;)

View File

@ -1,5 +1,6 @@
/** /**
* Example User Agents and thair expected bowser objects. * Example User Agents and thair expected bowser objects.
* Most of them where found at http://www.useragentstring.com/
* *
* @see test/test.js * @see test/test.js
* @author hannes.diercks@jimdo.com * @author hannes.diercks@jimdo.com