summaryrefslogtreecommitdiffstatshomepage
path: root/web/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'web/index.html')
-rw-r--r--web/index.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/index.html b/web/index.html
index 14d9e84c0e0..b4ff6e7d4c2 100644
--- a/web/index.html
+++ b/web/index.html
@@ -80,7 +80,8 @@
}
function startWebSocket() {
- var url = 'ws://localhost:8080/foo';
+ var docbase = window.location.href.toString();
+ var url = docbase.replace("http://","ws://");
websocket = new WebSocket(url);
websocket.onopen = function(ev) {
writeToScreen('<b style="color: green;">Connected</b>');