Fix the webclient pulling the history from the wrong port...
This commit is contained in:
parent
ab41114b16
commit
21820453bd
1 changed files with 1 additions and 1 deletions
|
|
@ -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}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue