diff options
author | Artur Signell <artur@vaadin.com> | 2015-07-13 16:36:55 +0300 |
---|---|---|
committer | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-07-21 14:41:13 +0300 |
commit | 5c4bd18350dd1a43ddcf4a737a72b8deeb37e5ea (patch) | |
tree | 949868d8ef6aea8f0c074142dbbb4d3598a0a5ae | |
parent | acc4fd38674cef5dc864aa3b43d5c37c74093e82 (diff) | |
download | vaadin-framework-5c4bd18350dd1a43ddcf4a737a72b8deeb37e5ea.tar.gz vaadin-framework-5c4bd18350dd1a43ddcf4a737a72b8deeb37e5ea.zip |
Allow using only hostname with ?superdevmode
Change-Id: Iffa9da89e869448ce0ef84af4b8d228832ea46b1
-rw-r--r-- | client/src/com/vaadin/client/SuperDevMode.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/SuperDevMode.java b/client/src/com/vaadin/client/SuperDevMode.java index c72cd73939..f664244715 100644 --- a/client/src/com/vaadin/client/SuperDevMode.java +++ b/client/src/com/vaadin/client/SuperDevMode.java @@ -189,7 +189,11 @@ public class SuperDevMode { if (serverUrl == null || "".equals(serverUrl)) { serverUrl = "http://localhost:9876/"; } else { - serverUrl = "http://" + serverUrl + "/"; + if (serverUrl.contains(":")) { + serverUrl = "http://" + serverUrl + "/"; + } else { + serverUrl = "http://" + serverUrl + ":9876/"; + } } if (hasSession(SKIP_RECOMPILE)) { |