Sfoglia il codice sorgente

Allow using only hostname with ?superdevmode

Change-Id: Ib88062d13fc3a22970b526a7fc56a22ba860637f
tags/7.6.0.alpha3^2
Artur Signell 8 anni fa
parent
commit
ef79e1aa98
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5
    1
      client/src/com/vaadin/client/SuperDevMode.java

+ 5
- 1
client/src/com/vaadin/client/SuperDevMode.java Vedi 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…
Annulla
Salva