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
35
README.md
35
README.md
@ -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
|
||||||
----
|
----
|
||||||
@ -60,4 +71,20 @@ 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 ;)
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user