mirror of
https://github.com/Lynnesbian/FediBooks/
synced 2024-11-25 08:38:59 +00:00
actually display the error message when there's an error
This commit is contained in:
parent
3d0cdbc5e5
commit
e9cdbf7de2
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ function sendMessage() {
|
|||
} else {
|
||||
message = "Encountered an error while trying to get a response.";
|
||||
}
|
||||
chatbox.innerHTML += `<div class="message-container bot"><div class="bot-icon"></div><div class="message bot">${this.responseText}</div></div>`;
|
||||
chatbox.innerHTML += `<div class="message-container bot"><div class="bot-icon"></div><div class="message bot">${message}</div></div>`;
|
||||
chatbox.scrollTop = chatbox.scrollHeight;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue