From: Henri Sara Date: Wed, 7 Apr 2010 10:11:34 +0000 (+0000) Subject: #4491 server side access to browser minor version and updated sample X-Git-Tag: 6.7.0.beta1~1797 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d6843c65213986215af8f1d3ed79b1addc05062a;p=vaadin-framework.git #4491 server side access to browser minor version and updated sample svn changeset:12346/svn branch:6.3 --- diff --git a/src/com/vaadin/terminal/gwt/server/WebBrowser.java b/src/com/vaadin/terminal/gwt/server/WebBrowser.java index a9a392b5d8..81d4a638a3 100644 --- a/src/com/vaadin/terminal/gwt/server/WebBrowser.java +++ b/src/com/vaadin/terminal/gwt/server/WebBrowser.java @@ -210,4 +210,19 @@ public class WebBrowser implements Terminal { return browserDetails.getBrowserMajorVersion(); } + + /** + * Gets the minor version of the browser the user is using. + * + * @see #getBrowserMajorVersion() + * + * @return The minor version of the browser or -1 if not known. + */ + public int getBrowserMinorVersion() { + if (browserDetails == null) { + return -1; + } + + return browserDetails.getBrowserMinorVersion(); + } }