mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-22 12:03:58 +00:00
Bugfix to make iPad to be recognized as tablet and not as desktop
This commit is contained in:
1 parent
918e9963a1
commit
2de575ded1
1 file changed
+1
-1
+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
|
||||
|
||||
Reference in new issue
Block a user