Fixed counter issue

Fixed https://github.com/ClearURLs/Addon/issues/234
This commit is contained in:
Kevin R
2022-07-26 21:48:08 +02:00
parent 2096fa8382
commit 0f08b0f7e3
7 changed files with 83 additions and 59 deletions

View File

@@ -27,7 +27,7 @@ let badges = {};
* Increases the badged by one.
*/
function increaseBadged(quiet = false, request) {
if (!quiet) increaseURLCounter();
if (!quiet) increaseCleanedCounter();
if(request === null) return;
@@ -74,4 +74,4 @@ function handleUpdated(tabId, changeInfo, tabInfo) {
/**
* Call by each tab is updated.
*/
browser.tabs.onUpdated.addListener(handleUpdated);
browser.tabs.onUpdated.addListener(handleUpdated);