Only periodically refresh in wall-display mode
This commit is contained in:
parent
1a2d20645f
commit
28edb6027c
@ -133,11 +133,5 @@ export function main(
|
|||||||
|
|
||||||
calendar.render();
|
calendar.render();
|
||||||
|
|
||||||
function refresh() {
|
return calendar;
|
||||||
calendar.refetchEvents();
|
|
||||||
calendar.today();
|
|
||||||
}
|
|
||||||
|
|
||||||
// refresh data every five minutes
|
|
||||||
window.setInterval(refresh, 5 * 60 * 1000);
|
|
||||||
}
|
}
|
||||||
|
@ -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