mirror of
https://github.com/holub/mame
synced 2025-04-18 22:49:58 +03:00
web: fixed hardcoded hostname and port in index.html. [Firehawke]
This commit is contained in:
parent
4ed5508898
commit
6016ce0af6
@ -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>');
|
||||
|
Loading…
Reference in New Issue
Block a user