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

render feed icon markup on the client

This commit is contained in:
Andrew Dolgov
2021-02-19 17:40:11 +03:00
parent d445530fa0
commit 737cffc241
3 changed files with 10 additions and 8 deletions

View File

@@ -633,4 +633,9 @@ const Feeds = {
//
});
},
renderIcon: function(feed_id, exists) {
return feed_id && exists ?
`<img class="icon" src="${App.escapeHtml(App.getInitParam("icons_url"))}/${feed_id}.ico">` :
`<i class='icon-no-feed material-icons'>rss_feed</i>`;
}
};