moved tests to fetch, run prettier

This commit is contained in:
Karsten Hassel
2021-03-02 21:26:25 +01:00
parent 92a35692f2
commit f09c54184a
7 changed files with 343 additions and 344 deletions

View File

@@ -86,14 +86,13 @@ const NewsfeedFetcher = function (url, reloadInterval, encoding, logFeedWarnings
};
fetch(url, { headers: headers })
.catch(error => {
.catch((error) => {
fetchFailedCallback(self, error);
scheduleTimer();
})
.then(res => {
.then((res) => {
res.body.pipe(iconv.decodeStream(encoding)).pipe(parser);
});
};
/**