mirror of
https://github.com/lone-cloud/gerbil
synced 2026-06-03 09:33:10 -07:00
keep checking for new kcpp updates every 6 hours after gerbil was launched
This commit is contained in:
parent
9cef647942
commit
1f4c4233ef
1 changed files with 9 additions and 0 deletions
|
|
@ -120,6 +120,15 @@ export const App = () => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
checkForUpdates();
|
checkForUpdates();
|
||||||
}, 5000);
|
}, 5000);
|
||||||
|
|
||||||
|
const interval = setInterval(
|
||||||
|
() => {
|
||||||
|
checkForUpdates();
|
||||||
|
},
|
||||||
|
6 * 60 * 60 * 1000
|
||||||
|
);
|
||||||
|
|
||||||
|
return () => clearInterval(interval);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue