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

refactored detection for firefox/seamonkey/plain gecko to conform to the way other browsers are detected, added version information in case unknown gecko/webkit browser is detected, added detection+tests+docs for sailfish browser

This commit is contained in:
BendingBender
2014-02-28 19:53:50 +01:00
parent 8bcd3bc802
commit 1e7a7279c8
5 changed files with 79 additions and 31 deletions

View File

@@ -29,6 +29,7 @@ Flags set for detected Browsers[Engines]
* Amazon Kindle browser as `silk`[`webkit`]
* Bada browser as `bada`[`webkit`]
* Tizen browser as `tizen`[`webkit`]
* Sailfish browser as `sailfish`[`gecko`]
For all detected browsers the browser version is set in the `version` field.
@@ -43,6 +44,7 @@ Flags set for detected mobile Operating Systems
* `webos` (`touchpad`)
* `bada`
* `tizen`
* `sailfish`
Android, iOS, Windows Phone, WebOS, Bada, and Tizen 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. If WebOS device is an HP TouchPad the flag `touchpad` is additionally set.