Skip to content

Commit

Permalink
refactor: format js scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
nickchecan committed Jan 12, 2025
1 parent a0b6827 commit 47c2e21
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function receiveMessage(output) {
addBotMessage(output);
updatePlaceholder();
clearMessageAndScrollDown();
}
}

function login() {
hideInstructions();
Expand Down Expand Up @@ -119,7 +119,7 @@ function updateTag(file) {
function updatePlaceholder() {
const chatBox = document.getElementById("chatBox");
const hasMessages = !!chatBox.querySelector(".message");

if (hasMessages) {
hidePlaceholder();
} else {
Expand Down Expand Up @@ -160,8 +160,8 @@ function finishLoading() {
const chatBox = document.getElementById('chatBox');
const botMessages = document.getElementsByClassName('message bot-message');
if (botMessages.length > 0) {
const loadingIndicator = botMessages[botMessages.length - 1];
chatBox.removeChild(loadingIndicator);
const loadingIndicator = botMessages[botMessages.length - 1];
chatBox.removeChild(loadingIndicator);
}
unblockInput();
}

0 comments on commit 47c2e21

Please sign in to comment.