mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
fixes calendarfetcher
This commit is contained in:
parent
1f9109f8e4
commit
c80aeff945
@ -72,7 +72,7 @@ const CalendarFetcher = function (url, reloadInterval, excludedEvents, maximumEn
|
|||||||
} else {
|
} else {
|
||||||
user = auth.user;
|
user = auth.user;
|
||||||
password = auth.pass;
|
password = auth.pass;
|
||||||
if (auth.method === "basic") {
|
if (auth.method !== "digest") {
|
||||||
opts = { basic: true };
|
opts = { basic: true };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -86,7 +86,8 @@ const CalendarFetcher = function (url, reloadInterval, excludedEvents, maximumEn
|
|||||||
})
|
})
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
if (response.status !== 200) {
|
if (response.status !== 200) {
|
||||||
throw new Error(response.status + ": " + response.statusText);
|
fetchFailedCallback(self, response.statusText);
|
||||||
|
scheduleTimer();
|
||||||
}
|
}
|
||||||
return response;
|
return response;
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user