Bugfix to make iPad to be recognized as tablet and not as desktop

This commit is contained in:
Steffen Schaefer committed 2015-10-14 08:33:02 +02:00
1 parent 918e9963a1
commit 2de575ded1
1 file changed
+1 -1
@@ -9,7 +9,7 @@ public class DeviceDetector {
private static Logger LOG = Logger.getLogger(DeviceDetector.class.getName());
private static final RegExp isMobileRegExp = RegExp.compile(
"Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini|Mobile Safari", "i");
"Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile Safari", "i");
private static final RegExp tabletBlacklistRegExp = RegExp.compile(
"iPad|" // Apple ;-)
+ "Nexus 7|Nexus 10|Nexus 9|" // Google Tablets