Fix errors introduced after latest rebase

This commit is contained in:
rejas 2021-03-14 10:01:52 +01:00 committed by veeck
parent 85c9d3b331
commit 71bd45dfd4

View File

@ -64,12 +64,12 @@ const CalendarFetcher = function (url, reloadInterval, excludedEvents, maximumEn
fetcher
.catch((error) => {
fetchFailedCallback(self, error);
fetchFailedCallback(this, error);
scheduleTimer();
})
.then((response) => {
if (response.status !== 200) {
fetchFailedCallback(self, response.statusText);
fetchFailedCallback(this, response.statusText);
scheduleTimer();
}
return response;