Fix for HP TouchPad Browser.isMobile #7

Closed
wants to merge 1 commit into
from
View
4 Source/Browser/Mobile.js
@@ -24,14 +24,14 @@ Browser.Device = {
if (Browser.Platform.ios){
var device = navigator.userAgent.toLowerCase().match(/(ip(ad|od|hone))/)[0];
-
+
Browser.Device[device] = true;
Browser.Device.name = device;
}
if (this.devicePixelRatio == 2)
Browser.hasHighResolution = true;
-Browser.isMobile = !['mac', 'linux', 'win'].contains(Browser.Platform.name);
+Browser.isMobile = !['mac', 'linux', 'win'].contains(Browser.Platform.name) || navigator.userAgent.contains('hp-tablet');
}).call(this);