forked from ryanmwangi/CalMerger
set refresh interval for regular refresh
This commit is contained in:
parent
c32e601c8f
commit
094123b768
|
@ -40,3 +40,10 @@ const form = document.getElementById('merge-form');
|
||||||
result.innerHTML = 'Error merging calendars';
|
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