Update index.html
Browse files- index.html +3 -3
index.html
CHANGED
|
@@ -1296,7 +1296,7 @@
|
|
| 1296 |
|
| 1297 |
let fullContent = '';
|
| 1298 |
els.abortController = new AbortController();
|
| 1299 |
-
|
| 1300 |
|
| 1301 |
try {
|
| 1302 |
const response = await fetch(url, {
|
|
@@ -1343,7 +1343,7 @@
|
|
| 1343 |
showToast(err.message, 'error');
|
| 1344 |
}
|
| 1345 |
} finally {
|
| 1346 |
-
|
| 1347 |
state.isStreaming = false;
|
| 1348 |
updateSendButton();
|
| 1349 |
// Update chat title if first message
|
|
@@ -1540,7 +1540,7 @@
|
|
| 1540 |
console.log('Initialization complete');
|
| 1541 |
}
|
| 1542 |
|
| 1543 |
-
|
| 1544 |
</script>
|
| 1545 |
</body>
|
| 1546 |
</html>
|
|
|
|
| 1296 |
|
| 1297 |
let fullContent = '';
|
| 1298 |
els.abortController = new AbortController();
|
| 1299 |
+
|
| 1300 |
|
| 1301 |
try {
|
| 1302 |
const response = await fetch(url, {
|
|
|
|
| 1343 |
showToast(err.message, 'error');
|
| 1344 |
}
|
| 1345 |
} finally {
|
| 1346 |
+
|
| 1347 |
state.isStreaming = false;
|
| 1348 |
updateSendButton();
|
| 1349 |
// Update chat title if first message
|
|
|
|
| 1540 |
console.log('Initialization complete');
|
| 1541 |
}
|
| 1542 |
|
| 1543 |
+
window.addEventListener('DOMContentLoaded', init);
|
| 1544 |
</script>
|
| 1545 |
</body>
|
| 1546 |
</html>
|