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

Avoid detecting Tablet PCs as tablet

Fixes #183
This commit is contained in:
danesh 2017-07-06 09:38:45 -04:00 committed by Denis Demchenko
parent 246880c782
commit e5096ae2c5

View File

@ -44,7 +44,7 @@
, linux = !android && !sailfish && !tizen && !webos && /linux/i.test(ua) , linux = !android && !sailfish && !tizen && !webos && /linux/i.test(ua)
, edgeVersion = getFirstMatch(/edge\/(\d+(\.\d+)?)/i) , edgeVersion = getFirstMatch(/edge\/(\d+(\.\d+)?)/i)
, versionIdentifier = getFirstMatch(/version\/(\d+(\.\d+)?)/i) , versionIdentifier = getFirstMatch(/version\/(\d+(\.\d+)?)/i)
, tablet = /tablet/i.test(ua) , tablet = /tablet/i.test(ua) && !/tablet pc/i.test(ua)
, mobile = !tablet && /[^-]mobi/i.test(ua) , mobile = !tablet && /[^-]mobi/i.test(ua)
, xbox = /xbox/i.test(ua) , xbox = /xbox/i.test(ua)
, result , result