mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 21:00:57 +00:00
typo, remove dead code, comments, fix recurring refresh, let fetcher handle it
This commit is contained in:
@@ -340,11 +340,8 @@ const CalendarFetcher = function (url, reloadInterval, excludedEvents, maximumEn
|
||||
}
|
||||
});
|
||||
|
||||
newEvents.sort(function (a, b) {
|
||||
return a.startDate - b.startDate;
|
||||
});
|
||||
|
||||
events = newEvents.slice(0, maximumEntries);
|
||||
// send all our events to upper to merge, sort and reduce for display
|
||||
events = newEvents;
|
||||
|
||||
self.broadcastEvents();
|
||||
scheduleTimer();
|
||||
|
Reference in New Issue
Block a user