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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user