From 6016ce0af6f2c4bbd29a6b2ee2f4904d2b178c96 Mon Sep 17 00:00:00 2001 From: "R. Belmont" Date: Thu, 19 Sep 2013 00:27:16 +0000 Subject: web: fixed hardcoded hostname and port in index.html. [Firehawke] --- web/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'web') 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('Connected'); -- cgit v1.2.3-70-g09d2