From ef79e1aa98b6460e43bfc63672b862513c1e9404 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Mon, 13 Jul 2015 16:36:55 +0300 Subject: Allow using only hostname with ?superdevmode Change-Id: Ib88062d13fc3a22970b526a7fc56a22ba860637f --- client/src/com/vaadin/client/SuperDevMode.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)) { -- cgit v1.2.3