1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

Fix webOS detection

fixes #186
This commit is contained in:
Denis Demchenko 2018-06-28 21:31:49 +03:00
parent 6e78874470
commit 49746c5547
2 changed files with 9 additions and 1 deletions

View File

@ -36,7 +36,7 @@
, silk = /silk/i.test(ua)
, sailfish = /sailfish/i.test(ua)
, tizen = /tizen/i.test(ua)
, webos = /(web|hpw)os/i.test(ua)
, webos = /(web|hpw)(o|0)s/i.test(ua)
, windowsphone = /windows phone/i.test(ua)
, samsungBrowser = /SamsungBrowser/i.test(ua)
, windows = !windowsphone && /windows/i.test(ua)

View File

@ -1230,6 +1230,14 @@ module.exports.useragents = {
, mobile: true
, x: true
}
, 'Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.122 Safari/537.36 WebAppManager': {
osname: 'WebOS'
, blink: true
, webos: true
, mobile: true
, version: ''
, x: true
}
}
, Android: {
'Mozilla/5.0 (Linux; U; Android 4.4.2; de-de; Nexus 7 Build/KOT49H) AppleWebKit/537.16 (KHTML, like Gecko) Version/4.0 Mobile Safari/537.16': {