summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2015-07-13 16:36:55 +0300
committerTeemu Suo-Anttila <teemusa@vaadin.com>2015-07-21 14:41:13 +0300
commit5c4bd18350dd1a43ddcf4a737a72b8deeb37e5ea (patch)
tree949868d8ef6aea8f0c074142dbbb4d3598a0a5ae
parentacc4fd38674cef5dc864aa3b43d5c37c74093e82 (diff)
downloadvaadin-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.java6
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)) {