mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-07 13:23:15 +00:00
Switch spinner snake case -> camel case
This commit is contained in:
@@ -77,9 +77,9 @@
|
|||||||
new_response.appendChild(new_response_text);
|
new_response.appendChild(new_response_text);
|
||||||
|
|
||||||
// Temporary status message to indicate that Khoj is thinking
|
// Temporary status message to indicate that Khoj is thinking
|
||||||
let loading_spinner = document.createElement("div");
|
let loadingSpinner = document.createElement("div");
|
||||||
loading_spinner.classList.add("spinner");
|
loadingSpinner.classList.add("spinner");
|
||||||
new_response_text.appendChild(loading_spinner);
|
new_response_text.appendChild(loadingSpinner);
|
||||||
document.getElementById("chat-body").scrollTop = document.getElementById("chat-body").scrollHeight;
|
document.getElementById("chat-body").scrollTop = document.getElementById("chat-body").scrollHeight;
|
||||||
|
|
||||||
// Call specified Khoj API which returns a streamed response of type text/plain
|
// Call specified Khoj API which returns a streamed response of type text/plain
|
||||||
@@ -111,7 +111,7 @@
|
|||||||
} else {
|
} else {
|
||||||
// Display response from Khoj
|
// Display response from Khoj
|
||||||
if (new_response_text.getElementsByClassName("spinner").length > 0) {
|
if (new_response_text.getElementsByClassName("spinner").length > 0) {
|
||||||
new_response_text.removeChild(loading_spinner);
|
new_response_text.removeChild(loadingSpinner);
|
||||||
}
|
}
|
||||||
|
|
||||||
new_response_text.innerHTML += chunk;
|
new_response_text.innerHTML += chunk;
|
||||||
|
|||||||
Reference in New Issue
Block a user