Spaces:
Sleeping
Sleeping
Keldos
commited on
Commit
·
cae1b59
1
Parent(s):
9983c9f
fix: 这下还总该修好了?
Browse files
web_assets/javascript/ChuanhuChat.js
CHANGED
|
@@ -253,7 +253,7 @@ function clearChatbot() {
|
|
| 253 |
function chatbotContentChanged(attempt = 1) {
|
| 254 |
for (var i = 0; i < attempt; i++) {
|
| 255 |
setTimeout(() => {
|
| 256 |
-
clearMessageRows();
|
| 257 |
saveHistoryHtml();
|
| 258 |
disableSendBtn();
|
| 259 |
gradioApp().querySelectorAll('#chuanhu-chatbot .message-wrap .message.user').forEach((userElement) => {addAvatars(userElement, 'user')});
|
|
@@ -264,6 +264,7 @@ function chatbotContentChanged(attempt = 1) {
|
|
| 264 |
}
|
| 265 |
|
| 266 |
var chatbotObserver = new MutationObserver(() => {
|
|
|
|
| 267 |
chatbotContentChanged(1);
|
| 268 |
if (chatbotIndicator.classList.contains('hide')) {
|
| 269 |
chatbotContentChanged(2);
|
|
|
|
| 253 |
function chatbotContentChanged(attempt = 1) {
|
| 254 |
for (var i = 0; i < attempt; i++) {
|
| 255 |
setTimeout(() => {
|
| 256 |
+
// clearMessageRows();
|
| 257 |
saveHistoryHtml();
|
| 258 |
disableSendBtn();
|
| 259 |
gradioApp().querySelectorAll('#chuanhu-chatbot .message-wrap .message.user').forEach((userElement) => {addAvatars(userElement, 'user')});
|
|
|
|
| 264 |
}
|
| 265 |
|
| 266 |
var chatbotObserver = new MutationObserver(() => {
|
| 267 |
+
clearMessageRows();
|
| 268 |
chatbotContentChanged(1);
|
| 269 |
if (chatbotIndicator.classList.contains('hide')) {
|
| 270 |
chatbotContentChanged(2);
|