Only periodically refresh in wall-display mode
This commit is contained in:
parent
730776620a
commit
3a221a0e93
@ -133,11 +133,5 @@ export function main(
|
||||
|
||||
calendar.render();
|
||||
|
||||
function refresh() {
|
||||
calendar.refetchEvents();
|
||||
calendar.today();
|
||||
}
|
||||
|
||||
// refresh data every five minutes
|
||||
window.setInterval(refresh, 5 * 60 * 1000);
|
||||
return calendar;
|
||||
}
|
||||
|
@ -31,4 +31,12 @@ const calendarOptions: CalendarOptions = {
|
||||
: [],
|
||||
};
|
||||
|
||||
main(calendarOptions, !toolFilter);
|
||||
const calendar = main(calendarOptions, !toolFilter);
|
||||
|
||||
function refresh() {
|
||||
calendar.refetchEvents();
|
||||
calendar.today();
|
||||
}
|
||||
|
||||
// refresh data every five minutes
|
||||
window.setInterval(refresh, 5 * 60 * 1000);
|
||||
|
Loading…
Reference in New Issue
Block a user