diff options
author | Artur Signell <artur@vaadin.com> | 2015-07-30 13:01:56 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2015-07-30 17:29:30 +0000 |
commit | bebb7efeaee4f02ac7d844cb0b11524d242eccba (patch) | |
tree | df8134c593e71f3a6feca0ee70bdad1f8b05bab7 /server | |
parent | edbe0cef91f1776a0ceebd6d47cfd73589cddce3 (diff) | |
download | vaadin-framework-bebb7efeaee4f02ac7d844cb0b11524d242eccba.tar.gz vaadin-framework-bebb7efeaee4f02ac7d844cb0b11524d242eccba.zip |
Detect Edge correctly (#18537)
Change-Id: I6aa7e7b7498ff85489843e52bd351e54c4ba70f9
Diffstat (limited to 'server')
-rw-r--r-- | server/src/com/vaadin/server/WebBrowser.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/server/src/com/vaadin/server/WebBrowser.java b/server/src/com/vaadin/server/WebBrowser.java index 66018b02f2..9bf30cb3db 100644 --- a/server/src/com/vaadin/server/WebBrowser.java +++ b/server/src/com/vaadin/server/WebBrowser.java @@ -126,6 +126,20 @@ public class WebBrowser implements Serializable { } /** + * Tests whether the user is using Edge. + * + * @return true if the user is using Edge, false if the user is not using + * Edge or if no information on the browser is present + */ + public boolean isEdge() { + if (browserDetails == null) { + return false; + } + + return browserDetails.isEdge(); + } + + /** * Tests whether the user is using Safari. * * @return true if the user is using Safari, false if the user is not using |