1
0
mirror of https://github.com/lancedikson/bowser synced 2026-03-02 03:40:27 +00:00

Expose the UA's os as a property on the results

This commit is contained in:
Will Binns-Smith
2015-10-08 22:02:36 -07:00
parent 5f933390f6
commit 32e2bc4807
3 changed files with 85 additions and 9 deletions

View File

@@ -35,10 +35,14 @@ if (bowser.msie && bowser.version <= 6) {
For all detected browsers the browser version is set in the `version` field.
## Flags set for detected mobile Operating Systems
## Flags set for detected Operating Systems
* `mac`
* Windows other than Windows Phone as `windows`
* Windows Phone as `windowsphone`
* `linux` for Linux other than `android`, `chromeos`, `webos`, `tizen`, and `sailfish`
* `chromeos`
* `android`
* Windows Phone as `windowsphone`
* `ios` (`iphone`/`ipad`/`ipod`)
* `blackberry`
* `firefoxos`