mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
updated readme
This commit is contained in:
parent
ede3ff49cd
commit
5aeeb68746
37
README.md
37
README.md
@ -10,28 +10,35 @@ if (bowser.msie && bowser.version <= 6) {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Detected Browsers
|
Detected Browsers[Engines]
|
||||||
|
-----
|
||||||
|
|
||||||
|
* chrome[webkit]
|
||||||
|
* firefox[gecko]
|
||||||
|
* msie
|
||||||
|
* opera[webkit if >12]
|
||||||
|
* phantomjs[webkit]
|
||||||
|
* safari[webkit]
|
||||||
|
* seamonkey[gecko]
|
||||||
|
* touchpad[webkit]
|
||||||
|
|
||||||
|
Detected mobile operating systems
|
||||||
-----
|
-----
|
||||||
|
|
||||||
* android
|
* android
|
||||||
* blackberry
|
|
||||||
* chrome[webkit]
|
|
||||||
* firefox[gecko]
|
|
||||||
* ipad
|
|
||||||
* iphone
|
|
||||||
* ipod
|
|
||||||
* msie
|
|
||||||
* opera
|
|
||||||
* phantomjs
|
|
||||||
* safari[webkit]
|
|
||||||
* seamonkey
|
|
||||||
* touchpad
|
|
||||||
* webos
|
|
||||||
* windows phone
|
* windows phone
|
||||||
|
* ios (iphone/ipad/ipod)
|
||||||
|
* blackberry
|
||||||
|
* firefoxos
|
||||||
|
* webos
|
||||||
|
|
||||||
|
Android, iOS and Windows Phone will all report the OS version number if it is contained in the UA string in the `osversion` field. iOS is always reported as `ios` and additionally as `iphone`/`ipad`/`ipod`, whichever one matches best. Windows Phone is reported as `windowsphone`.
|
||||||
|
|
||||||
|
All detected mobile OSes are additionally flagged `mobile`.
|
||||||
|
|
||||||
Notes
|
Notes
|
||||||
----
|
----
|
||||||
Safari, Chrome, and Firefox will report that they have webkit|gecko engines
|
Safari, Chrome and some other minor browsers will report that they have `webkit` engines, Firefox and Seamonkey will report that they have `gecko` engines.
|
||||||
|
|
||||||
``` js
|
``` js
|
||||||
if (bowser.webkit) {
|
if (bowser.webkit) {
|
||||||
|
Loading…
Reference in New Issue
Block a user