diff --git a/src/embedded/js/refresh_websocket.js b/src/embedded/js/refresh_websocket.js index 9df57ab..5209584 100644 --- a/src/embedded/js/refresh_websocket.js +++ b/src/embedded/js/refresh_websocket.js @@ -6,7 +6,7 @@ let socket; function start(reload) { - socket = new WebSocket("ws://127.0.0.1:8080"); + socket = new WebSocket(`ws://${location.host}`); let reloading = false; socket.onmessage = function (ev) { if (ev.data === "reload") {