forked from ryanmwangi/CalMerger
set refresh interval for regular refresh
This commit is contained in:
parent
c32e601c8f
commit
094123b768
|
@ -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);
|
Loading…
Reference in New Issue