mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
Added HP Touchpad support
This commit is contained in:
parent
9e1a11c052
commit
3d4f77a878
@ -28,7 +28,7 @@
|
|||||||
, safari = /safari/i.test(ua) && !chrome
|
, safari = /safari/i.test(ua) && !chrome
|
||||||
, iphone = /iphone/i.test(ua)
|
, iphone = /iphone/i.test(ua)
|
||||||
, ipad = /ipad/i.test(ua)
|
, ipad = /ipad/i.test(ua)
|
||||||
, touchpad = /touchpad/i.test(ua)
|
, touchpad = /touchpad/i.test(ua)
|
||||||
, android = /android/i.test(ua)
|
, android = /android/i.test(ua)
|
||||||
, opera = /opera/i.test(ua)
|
, opera = /opera/i.test(ua)
|
||||||
, firefox = /firefox/i.test(ua)
|
, firefox = /firefox/i.test(ua)
|
||||||
@ -48,7 +48,7 @@
|
|||||||
, chrome: t
|
, chrome: t
|
||||||
, version: ua.match(/chrome\/(\d+(\.\d+)?)/i)[1]
|
, version: ua.match(/chrome\/(\d+(\.\d+)?)/i)[1]
|
||||||
}
|
}
|
||||||
if (touchpad) return {
|
if (touchpad) return {
|
||||||
webkit: t
|
webkit: t
|
||||||
, touchpad: t
|
, touchpad: t
|
||||||
, version : ua.match(/touchpad\/(\d+(\.\d+)?)/i)[1]
|
, version : ua.match(/touchpad\/(\d+(\.\d+)?)/i)[1]
|
||||||
|
Loading…
Reference in New Issue
Block a user