1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-09-28 15:13:05 +00:00

actually display the error message when there's an error

This commit is contained in:
Lynne Megido 2020-01-20 13:49:16 +10:00
parent 3d0cdbc5e5
commit e9cdbf7de2
Signed by: lynnesbian
GPG key ID: F0A184B5213D9F90

View file

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