From 21820453bd757544e131f329e7023c1c4e5616f8 Mon Sep 17 00:00:00 2001 From: cdez Date: Fri, 28 Mar 2025 19:33:29 -0700 Subject: [PATCH] Fix the webclient pulling the history from the wrong port... --- chatserver/templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatserver/templates/index.html b/chatserver/templates/index.html index b2dcb17..0e25206 100644 --- a/chatserver/templates/index.html +++ b/chatserver/templates/index.html @@ -249,7 +249,7 @@ chatDiv.innerHTML = ""; // Fetch message history for the new chat room - fetch(`/get_history?chat_room=${encodeURIComponent(chatRoom)}`) + fetch(`${serverBaseUrl}/get_history?chat_room=${encodeURIComponent(chatRoom)}`) .then(response => { if (!response.ok) { throw new Error(`HTTP error! status: ${response.status}`);