1
0
Fork 0

set refresh interval for regular refresh

This commit is contained in:
Ryan Mwangi 2024-10-02 14:09:51 +03:00
parent c32e601c8f
commit 094123b768
1 changed files with 8 additions and 1 deletions

View File

@ -39,4 +39,11 @@ const form = document.getElementById('merge-form');
console.error(error);
result.innerHTML = 'Error merging calendars';
});
});
});
//regular refresh
const refreshInterval = 60 * 60 * 1000; // 1 hour
setInterval(() => {
// Fetch new calendar data and update the merged calendar
updateMergedCalendar();
}, refreshInterval);