From ed505d29c7c223e95edd2e6778175593d3cbb3fd Mon Sep 17 00:00:00 2001 From: l_samenv Date: Fri, 12 Jul 2024 10:31:49 +0200 Subject: [PATCH] fixed paths to be relative --- client/main.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/main.html b/client/main.html index 6e5df02..4813c4d 100644 --- a/client/main.html +++ b/client/main.html @@ -1,13 +1,13 @@ -console -group +console +group -
+
@@ -48,13 +48,13 @@ function insert(link) { } function act() { - getJSON("http://localhost:5000/" + action.value.split("*").join(myid), + getJSON("/" + action.value.split("*").join(myid), function(message) { result.innerHTML = JSON.stringify(message); }, function(status) { console.log(status); } ) } -var evtSrc = new EventSource("http://localhost:5000/update"); +var evtSrc = new EventSource("/update"); evtSrc.onmessage = function(e) { var message = JSON.parse(e.data);