visualizer: generalize websocket address

This commit is contained in:
Thomas Kolb 2024-02-15 22:44:45 +01:00
parent c7a4eb16bf
commit a157c1eedd
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@
* Websocket handling *
*********************************/
var ws = new WebSocket("ws://localhost:8080/websocket");
var ws = new WebSocket("ws://" + window.location.host + "/websocket");
ws.onopen = function() {
console.log("Websocket connected.");
};