diff options
Diffstat (limited to 'js/Headlines.js')
-rwxr-xr-x | js/Headlines.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/js/Headlines.js b/js/Headlines.js index 2f056aef6..bbf48738b 100755 --- a/js/Headlines.js +++ b/js/Headlines.js @@ -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 = { @@ -439,7 +442,7 @@ define(["dojo/_base/declare"], function (declare) { </span> <div class="feed"> - <a href="#" style="background-color: rgba(${hl.favicon_avg_color_rgba})" + <a href="#" style="background-color: ${hl.feed_bg_color}" onclick="Feeds.open({feed:${hl.feed_id}})">${hl.feed_title}</a> </div> @@ -498,14 +501,14 @@ define(["dojo/_base/declare"], function (declare) { </span> </div> <span class="feed"> - <a style="background : rgba(${hl.favicon_avg_color_rgba})" href="#" onclick="Feeds.open({feed:${hl.feed_id}})">${hl.feed_title}</a> + <a style="background : ${hl.feed_bg_color}" href="#" onclick="Feeds.open({feed:${hl.feed_id}})">${hl.feed_title}</a> </span> <div title="${hl.imported}"> <span class="updated">${hl.updated}</span> </div> <div class="right"> <i class="material-icons icon-score" title="${hl.score}" onclick="Article.setScore(${hl.id}, this)">${Article.getScorePic(hl.score)}</i> - <span onclick="Feeds.open({feed:${hl.feed_id})" style="cursor : pointer" title="${hl.feed_title}">${hl.feed_icon}</span> + <span onclick="Feeds.open({feed:${hl.feed_id}})" style="cursor : pointer" title="${hl.feed_title}">${hl.feed_icon}</span> </div> </div> `; |