aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2022-11-06 01:07:13 +0100
committerLouis Burda <quent.burda@gmail.com>2022-11-06 01:07:13 +0100
commit9ab7ef9a2786004fc192df757780c9a1ffb4598f (patch)
tree98ea4ca4e31a341d660fc0189491184cea8c7b62
parent6b9020b3d763ce93eb5ca04e93a8e7b4cdf5343e (diff)
downloadbambi7-service-fireworx-9ab7ef9a2786004fc192df757780c9a1ffb4598f.tar.gz
bambi7-service-fireworx-9ab7ef9a2786004fc192df757780c9a1ffb4598f.zip
Fix websocket connection url in frontend
-rw-r--r--service/static/content.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/static/content.js b/service/static/content.js
index 5cbf862..09fe3a7 100644
--- a/service/static/content.js
+++ b/service/static/content.js
@@ -139,7 +139,7 @@ function do_register() {
}
function event_handler() {
- let socket = new WebSocket("ws://localhost:1812/ws");
+ let socket = new WebSocket("ws://" + document.location.hostname + ":1812/ws");
socket.onmessage = function(e) {
event = JSON.parse(e.data);