mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 11:15:56 +00:00
requestIdleCallback: remove hard dependency for now
This commit is contained in:
@@ -40,9 +40,12 @@ define(["dojo/_base/declare"], function (declare) {
|
||||
Headlines.updateSelectedPrompt();
|
||||
Headlines.updateFloatingTitle(true);
|
||||
|
||||
window.requestIdleCallback(() => {
|
||||
if ('requestIdleCallback' in window)
|
||||
window.requestIdleCallback(() => {
|
||||
Headlines.syncModified(modified);
|
||||
});
|
||||
else
|
||||
Headlines.syncModified(modified);
|
||||
});
|
||||
}),
|
||||
syncModified: function(modified) {
|
||||
const ops = {
|
||||
|
||||
Reference in New Issue
Block a user