simonu5 commited on
Commit
c3cc1eb
·
verified ·
1 Parent(s): 8824943

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +3 -3
index.html CHANGED
@@ -1296,7 +1296,7 @@
1296
 
1297
  let fullContent = '';
1298
  els.abortController = new AbortController();
1299
- const timeoutId = setTimeout(() => { if (els.abortController) els.abortController.abort(); }, state.params.timeout * 1000);
1300
 
1301
  try {
1302
  const response = await fetch(url, {
@@ -1343,7 +1343,7 @@
1343
  showToast(err.message, 'error');
1344
  }
1345
  } finally {
1346
- clearTimeout(timeoutId);
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
- init();
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>