mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-15 11:07:57 +01:00
Disable brower support check. This was required because the validation is failing with some new version of Chrome.
This commit is contained in:
parent
9a364dd702
commit
6507d6566e
@ -39,27 +39,27 @@ public class SupportedUserAgent implements Serializable {
|
||||
|
||||
public boolean isBrowserSupported() {
|
||||
|
||||
final UserAgent userAgent = this.getUserAgent();
|
||||
final Browser browser = userAgent.getBrowser();
|
||||
final OperatingSystem os = userAgent.getOperatingSystem();
|
||||
final Version version = userAgent.getBrowserVersion();
|
||||
final int majorVersion = version != null ? Integer.parseInt(version.getMajorVersion()) : -1;
|
||||
// final UserAgent userAgent = this.getUserAgent();
|
||||
// final Browser browser = userAgent.getBrowser();
|
||||
// final OperatingSystem os = userAgent.getOperatingSystem();
|
||||
// final Version version = userAgent.getBrowserVersion();
|
||||
// final int majorVersion = version != null ? Integer.parseInt(version.getMajorVersion()) : -1;
|
||||
//
|
||||
// boolean result = browser == Browser.FIREFOX && majorVersion >= 10;
|
||||
// result = result || browser == Browser.FIREFOX2 && majorVersion >= 17;
|
||||
// result = result || browser == Browser.FIREFOX3 && majorVersion >= 29;
|
||||
// result = result || browser == Browser.FIREFOX4 && majorVersion >= 40;
|
||||
// result = result || browser == Browser.IE8 || browser == Browser.IE9 || browser == Browser.IE11 ;
|
||||
// result = result || browser == Browser.IE && majorVersion >= 8;
|
||||
// result = result || browser == Browser.OPERA10 && majorVersion >= 11;
|
||||
// result = result || browser == Browser.CHROME && majorVersion >= 18;
|
||||
// result = result || browser == Browser.SAFARI5;
|
||||
// result = result || browser == Browser.SAFARI && majorVersion >= 5;
|
||||
// result = result || browser == Browser.MOBILE_SAFARI;
|
||||
// result = result || os.isMobileDevice() && (os == OperatingSystem.ANDROID || os == OperatingSystem.iOS4_IPHONE);
|
||||
// result = result || browser.getBrowserType() == BrowserType.ROBOT;
|
||||
|
||||
boolean result = browser == Browser.FIREFOX && majorVersion >= 10;
|
||||
result = result || browser == Browser.FIREFOX2 && majorVersion >= 17;
|
||||
result = result || browser == Browser.FIREFOX3 && majorVersion >= 29;
|
||||
result = result || browser == Browser.FIREFOX4 && majorVersion >= 40;
|
||||
result = result || browser == Browser.IE8 || browser == Browser.IE9 || browser == Browser.IE11 ;
|
||||
result = result || browser == Browser.IE && majorVersion >= 8;
|
||||
result = result || browser == Browser.OPERA10 && majorVersion >= 11;
|
||||
result = result || browser == Browser.CHROME && majorVersion >= 18;
|
||||
result = result || browser == Browser.SAFARI5;
|
||||
result = result || browser == Browser.SAFARI && majorVersion >= 5;
|
||||
result = result || browser == Browser.MOBILE_SAFARI;
|
||||
result = result || os.isMobileDevice() && (os == OperatingSystem.ANDROID || os == OperatingSystem.iOS4_IPHONE);
|
||||
result = result || browser.getBrowserType() == BrowserType.ROBOT;
|
||||
|
||||
return result;
|
||||
return true;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
Loading…
Reference in New Issue
Block a user