fixup 1951bc89: wait for bg when the browser is starting up

This commit is contained in:
tophf 2017-12-04 11:28:32 +03:00
parent 1951bc89bb
commit 81c6d9912c

View File

@ -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;