web: fixed hardcoded hostname and port in index.html. [Firehawke]

This commit is contained in:
R. Belmont 2013-09-19 00:27:16 +00:00
parent 4ed5508898
commit 6016ce0af6

View File

@ -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>');