From 9236d6fe0fda61a1f273844bb35dcc993cbff029 Mon Sep 17 00:00:00 2001 From: anthem001 Date: Sun, 15 Apr 2012 16:13:29 -0600 Subject: [PATCH] Added HP Touchpad support --- bowser.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bowser.js b/bowser.js index 232a327..44c2b9d 100644 --- a/bowser.js +++ b/bowser.js @@ -27,8 +27,8 @@ , chrome = /chrome/i.test(ua) , safari = /safari/i.test(ua) && !chrome , iphone = /iphone/i.test(ua) - , ipad = /ipad/i.test(ua) - , touchpad = /touchpad/i.test(ua) + , ipad = /ipad/i.test(ua) + , touchpad = /touchpad/i.test(ua) , android = /android/i.test(ua) , opera = /opera/i.test(ua) , firefox = /firefox/i.test(ua) @@ -48,7 +48,7 @@ , chrome: t , version: ua.match(/chrome\/(\d+(\.\d+)?)/i)[1] } - if (touchpad) return { + if (touchpad) return { webkit: t , touchpad: t , version : ua.match(/touchpad\/(\d+(\.\d+)?)/i)[1]