Skip to content

Commit 47c2e21

Browse files
author
nickchecan
committed
refactor: format js scripts
1 parent a0b6827 commit 47c2e21

File tree

1 file changed

+4
-4
lines changed
  • com.developer.nefarious.zjoule.plugin/resources/views

1 file changed

+4
-4
lines changed

com.developer.nefarious.zjoule.plugin/resources/views/scripts.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function receiveMessage(output) {
6565
addBotMessage(output);
6666
updatePlaceholder();
6767
clearMessageAndScrollDown();
68-
}
68+
}
6969

7070
function login() {
7171
hideInstructions();
@@ -119,7 +119,7 @@ function updateTag(file) {
119119
function updatePlaceholder() {
120120
const chatBox = document.getElementById("chatBox");
121121
const hasMessages = !!chatBox.querySelector(".message");
122-
122+
123123
if (hasMessages) {
124124
hidePlaceholder();
125125
} else {
@@ -160,8 +160,8 @@ function finishLoading() {
160160
const chatBox = document.getElementById('chatBox');
161161
const botMessages = document.getElementsByClassName('message bot-message');
162162
if (botMessages.length > 0) {
163-
const loadingIndicator = botMessages[botMessages.length - 1];
164-
chatBox.removeChild(loadingIndicator);
163+
const loadingIndicator = botMessages[botMessages.length - 1];
164+
chatBox.removeChild(loadingIndicator);
165165
}
166166
unblockInput();
167167
}

0 commit comments

Comments
 (0)