mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
#183 Avoid detecting Tablet PCs as tablet
This commit is contained in:
parent
744d89089a
commit
d82a6d25b2
@ -44,7 +44,7 @@
|
||||
, linux = !android && !sailfish && !tizen && !webos && /linux/i.test(ua)
|
||||
, edgeVersion = getFirstMatch(/edge\/(\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)
|
||||
, xbox = /xbox/i.test(ua)
|
||||
, result
|
||||
|
Loading…
Reference in New Issue
Block a user