summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorGravatarGravatar R. Belmont <rb6502@users.noreply.github.com>2013-09-19 00:27:16 +0000
committerGravatarGravatar R. Belmont <rb6502@users.noreply.github.com>2013-09-19 00:27:16 +0000
commit6016ce0af6f2c4bbd29a6b2ee2f4904d2b178c96 (patch) (github)
treeb455b5b17daabdf07562234272c3e85ad3288515 /web
parent4ed5508898bf4b8ee660bc691f0e216ba08b4e90 (diff)
downloadmame-6016ce0af6f2c4bbd29a6b2ee2f4904d2b178c96.tar.bz2
mame-6016ce0af6f2c4bbd29a6b2ee2f4904d2b178c96.zip
web: fixed hardcoded hostname and port in index.html. [Firehawke]
Diffstat (limited to 'web')
-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>');