From 8ca4253be4636a96c643641492b95ea6b5f693c4 Mon Sep 17 00:00:00 2001 From: tophf Date: Mon, 4 Dec 2017 21:14:31 +0300 Subject: [PATCH] fix the note for good, hopefully --- manage/filters.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/manage/filters.js b/manage/filters.js index 8dd191b9..aae54d43 100644 --- a/manage/filters.js +++ b/manage/filters.js @@ -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 !== '');