1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 01:25:56 +00:00

* it feels weird for requireIdleCallback() to be optional while more

modern browser features are required
 * simplify browser startup feature check a bit
This commit is contained in:
Andrew Dolgov
2021-03-10 19:53:09 +03:00
parent 84fe383ed4
commit 143617afb1
4 changed files with 14 additions and 21 deletions

View File

@@ -76,12 +76,9 @@ const Headlines = {
Headlines.updateSelectedPrompt();
if ('requestIdleCallback' in window)
window.requestIdleCallback(() => {
Headlines.syncModified(modified);
});
else
window.requestIdleCallback(() => {
Headlines.syncModified(modified);
});
}),
syncModified: function (modified) {
const ops = {
@@ -175,7 +172,7 @@ const Headlines = {
});
}
Promise.all(promises).then((results) => {
Promise.allSettled(promises).then((results) => {
let feeds = [];
let labels = [];