fix the note for good, hopefully

This commit is contained in:
tophf 2017-12-04 21:14:31 +03:00
parent a0c6450fc1
commit 8ca4253be4

View File

@ -158,7 +158,7 @@ function reapplyFilter(container = installed) {
filterContainer({hide: true});
}
if (!toHide.length) {
showFiltersStats({immediately: true});
showFiltersStats();
return;
}
for (const entry of toHide) {
@ -298,9 +298,9 @@ function reapplyFilter(container = installed) {
}
function showFiltersStats({immediately} = {}) {
if (!immediately || !BG.cachedStyles.list) {
debounce(showFiltersStats, 100, {immediately: true});
function showFiltersStats() {
if (!BG.cachedStyles.list) {
debounce(showFiltersStats, 100);
return;
}
$('#filters').classList.toggle('active', filtersSelector.hide !== '');