Skip to content

Commit

Permalink
refactor: rename loading icon
Browse files Browse the repository at this point in the history
  • Loading branch information
nickchecan committed Jan 12, 2025
1 parent aac5895 commit 0effc77
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const loadingIconSvg = `
const loadingIcon = `
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" width="50" height="50" style="shape-rendering: auto; display: block; background: none;" xmlns:xlink="http://www.w3.org/1999/xlink">
<g>
<circle fill="#422e78" r="10" cy="50" cx="84">
Expand Down Expand Up @@ -141,7 +141,7 @@ function startLoading() {
const chatBox = document.getElementById('chatBox');
const message = document.createElement('div');
message.className = 'message bot-message';
message.innerHTML = loadingIconSvg;
message.innerHTML = loadingIcon;
chatBox.appendChild(message);
}

Expand Down

0 comments on commit 0effc77

Please sign in to comment.