Fix the webclient pulling the history from the wrong port...

This commit is contained in:
Charles Descamps 2025-03-28 19:33:29 -07:00
parent ab41114b16
commit 21820453bd

View file

@ -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}`);