add todo
This commit is contained in:
parent
6927d54cbd
commit
f838edeadb
1 changed files with 3 additions and 0 deletions
|
|
@ -42,6 +42,9 @@ async function updateTitle() {
|
||||||
eventSource.close();
|
eventSource.close();
|
||||||
console.error("Connection lost, or an error has occurred.");
|
console.error("Connection lost, or an error has occurred.");
|
||||||
console.log("Attempting to reconnect...");
|
console.log("Attempting to reconnect...");
|
||||||
|
|
||||||
|
// TODO: stop reconnecting after 10 failed attempts
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
updateTitle();
|
updateTitle();
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue