1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 14:45:57 +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

@@ -510,12 +510,10 @@ const Helpers = {
search: function() {
this.search_query = this.attr('value').search.toLowerCase();
if ('requestIdleCallback' in window)
window.requestIdleCallback(() => {
this.render_contents();
});
else
window.requestIdleCallback(() => {
this.render_contents();
});
},
render_contents: function() {
const container = dialog.domNode.querySelector(".contents");