mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +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 {
|
||||
user = auth.user;
|
||||
password = auth.pass;
|
||||
if (auth.method === "basic") {
|
||||
if (auth.method !== "digest") {
|
||||
opts = { basic: true };
|
||||
};
|
||||
}
|
||||
@ -86,7 +86,8 @@ const CalendarFetcher = function (url, reloadInterval, excludedEvents, maximumEn
|
||||
})
|
||||
.then((response) => {
|
||||
if (response.status !== 200) {
|
||||
throw new Error(response.status + ": " + response.statusText);
|
||||
fetchFailedCallback(self, response.statusText);
|
||||
scheduleTimer();
|
||||
}
|
||||
return response;
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user