mirror of
https://github.com/asimonson1125/asimonson1125.github.io.git
synced 2026-02-25 13:09:51 -06:00
silent bugs
This commit is contained in:
@@ -236,10 +236,16 @@ function refreshStatus() {
|
||||
/**
|
||||
* Initialize on page load
|
||||
*/
|
||||
let statusIntervalId = null;
|
||||
|
||||
function initStatusPage() {
|
||||
// Clear any existing interval from a previous SPA navigation
|
||||
if (statusIntervalId !== null) {
|
||||
clearInterval(statusIntervalId);
|
||||
}
|
||||
fetchStatus();
|
||||
// Auto-refresh every 5 minutes to get latest data
|
||||
setInterval(fetchStatus, 300000);
|
||||
statusIntervalId = setInterval(fetchStatus, 300000);
|
||||
}
|
||||
|
||||
// Start when page loads
|
||||
|
||||
Reference in New Issue
Block a user