Skip to content

Commit

Permalink
Fix webOS detection
Browse files Browse the repository at this point in the history
fixes #186
  • Loading branch information
lancedikson committed Jun 28, 2018
1 parent 6e78874 commit 49746c5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/bowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 8 additions & 0 deletions src/useragents.js
Original file line number Diff line number Diff line change
Expand Up @@ -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': {
Expand Down

0 comments on commit 49746c5

Please sign in to comment.