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
* safari[webkit]
* android
* blackberry
* chrome[webkit]
* firefox[gecko]
* ipad
* iphone
* ipod
* msie
* opera
* phantomjs
* safari[webkit]
* seamonkey
* touchpad
* webos
* windows phone
Notes
----
@ -60,4 +71,20 @@ else if (bowser.c) {
}
else {
// 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.
* Most of them where found at http://www.useragentstring.com/
*
* @see test/test.js
* @author hannes.diercks@jimdo.com