summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2015-07-13 16:36:55 +0300
committerVaadin Code Review <review@vaadin.com>2015-07-15 06:42:43 +0000
commitef79e1aa98b6460e43bfc63672b862513c1e9404 (patch)
treec691de09f07c0e448b5e439cac044c36a5581c80
parenta1978dfa16dbb35ee7ac7ab9026af27624158be7 (diff)
downloadvaadin-framework-ef79e1aa98b6460e43bfc63672b862513c1e9404.tar.gz
vaadin-framework-ef79e1aa98b6460e43bfc63672b862513c1e9404.zip
Allow using only hostname with ?superdevmode
Change-Id: Ib88062d13fc3a22970b526a7fc56a22ba860637f
-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)) {