|
@ -1303,6 +1303,7 @@ function initUrls(root) { |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
urls.ws.protocol = "ws"; |
|
|
urls.ws.protocol = "ws"; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function connectToURL(url) { |
|
|
function connectToURL(url) { |
|
@ -1318,11 +1319,9 @@ function connectToURL(url) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function connect(host) { |
|
|
function connect(host) { |
|
|
|
|
|
|
|
|
if (!host.startsWith("http:") && !host.startsWith("https:")) { |
|
|
if (!host.startsWith("http:") && !host.startsWith("https:")) { |
|
|
host = "http://" + host; |
|
|
host = "http://" + host; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
connectToURL(new URL(host)); |
|
|
connectToURL(new URL(host)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -1330,7 +1329,6 @@ function connectToCurrentURL() { |
|
|
connectToURL(new URL(window.location)); |
|
|
connectToURL(new URL(window.location)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(function() { |
|
|
$(function() { |
|
|
|
|
|
|
|
|
initMessages(); |
|
|
initMessages(); |
|
|