From f838edeadb221d918b6f123b8efe3a5aadc90ffb Mon Sep 17 00:00:00 2001 From: ari melody Date: Fri, 12 Jun 2026 05:08:23 +0100 Subject: [PATCH] add todo --- learning/public/cards.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/learning/public/cards.js b/learning/public/cards.js index 7f83c83..a25da1a 100644 --- a/learning/public/cards.js +++ b/learning/public/cards.js @@ -42,6 +42,9 @@ async function updateTitle() { eventSource.close(); console.error("Connection lost, or an error has occurred."); console.log("Attempting to reconnect..."); + + // TODO: stop reconnecting after 10 failed attempts + setTimeout(() => { updateTitle(); }, 1000);