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

added detection for tizen and a new tizen flag

This commit is contained in:
BendingBender
2014-02-25 01:48:35 +01:00
parent 6b0bc2ee9b
commit e39d6a8fc0
5 changed files with 84 additions and 22 deletions

View File

@@ -28,6 +28,7 @@ Flags set for detected Browsers[Engines]
* WebOS native browser as `webos`[`webkit`]
* Amazon Kindle browser as `silk`[`webkit`]
* Bada browser as `bada`[`webkit`]
* Tizen browser as `tizen`[`webkit`]
For all detected browsers the browser version is set in the `version` field.
@@ -41,8 +42,9 @@ Flags set for detected mobile Operating Systems
* `firefoxos`
* `webos` (`touchpad`)
* `bada`
* `tizen`
Android, iOS, Windows Phone, WebOS, and Bada 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.
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.
All detected mobile OSes are additionally flagged `mobile`, **if they are not powering a tablet device**. If a tablet device is detected, the flag `tablet` is set instead.