Browse Source

Allow using only hostname with ?superdevmode

Change-Id: Ib88062d13fc3a22970b526a7fc56a22ba860637f
tags/7.6.0.alpha3^2
Artur Signell 8 years ago
parent
commit
ef79e1aa98
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      client/src/com/vaadin/client/SuperDevMode.java

+ 5
- 1
client/src/com/vaadin/client/SuperDevMode.java View File

@@ -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)) {

Loading…
Cancel
Save