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:
@@ -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 = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user