From 206351c284f4c1d60cc139141e8a5445fdc0ba06 Mon Sep 17 00:00:00 2001 From: Egor Date: Sat, 1 Nov 2025 22:22:10 -0700 Subject: [PATCH] keep checking for new kcpp updates every 6 hours after gerbil was launched --- src/components/App/index.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/components/App/index.tsx b/src/components/App/index.tsx index 157229d..6bebced 100644 --- a/src/components/App/index.tsx +++ b/src/components/App/index.tsx @@ -120,6 +120,15 @@ export const App = () => { setTimeout(() => { checkForUpdates(); }, 5000); + + const interval = setInterval( + () => { + checkForUpdates(); + }, + 6 * 60 * 60 * 1000 + ); + + return () => clearInterval(interval); } };