fixup 1951bc89: wait for bg when the browser is starting up
This commit is contained in:
parent
1951bc89bb
commit
81c6d9912c
|
@ -296,6 +296,10 @@ function reapplyFilter(container = installed) {
|
|||
|
||||
|
||||
function showFiltersStats() {
|
||||
if (!BG.cachedStyles.list) {
|
||||
debounce(showFiltersStats);
|
||||
return;
|
||||
}
|
||||
$('#filters').classList.toggle('active', filtersSelector.hide !== '');
|
||||
const numTotal = BG.cachedStyles.list.length;
|
||||
const numHidden = installed.getElementsByClassName('entry hidden').length;
|
||||
|
|
Loading…
Reference in New Issue
Block a user