Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix HP TouchPad - Browser.isMobile

  • Loading branch information...
commit bf921b3223875270569177d2dee85bace209e847 1 parent 2b1d30c
Henning Leutz authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Source/Browser/Mobile.js
4 Source/Browser/Mobile.js
View
@@ -24,7 +24,7 @@ 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;
}
@@ -32,6 +32,6 @@ if (Browser.Platform.ios){
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);
Please sign in to comment.
Something went wrong with that request. Please try again.