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:
parent
5376cc67dc
commit
43953fc11f
33
README.md
33
README.md
@ -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
|
||||
----
|
||||
@ -61,3 +72,19 @@ 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 ;)
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user