diff --git a/script.js b/script.js index e776ec9..78d22e3 100644 --- a/script.js +++ b/script.js @@ -39,4 +39,11 @@ const form = document.getElementById('merge-form'); console.error(error); result.innerHTML = 'Error merging calendars'; }); - }); \ No newline at end of file + }); + + //regular refresh + const refreshInterval = 60 * 60 * 1000; // 1 hour + setInterval(() => { + // Fetch new calendar data and update the merged calendar + updateMergedCalendar(); + }, refreshInterval); \ No newline at end of file