We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c36f05 commit f8e7d4cCopy full SHA for f8e7d4c
background.js
@@ -60,8 +60,10 @@ const queryParams = [
60
61
// Function to add a modified URL
62
function addModifiedUrl(url) {
63
- modifiedUrls.add(url);
64
- incrementCount(); // Increment the counter and update the badge text when a new URL is added
+ if (!modifiedUrls.has(url)) {
+ modifiedUrls.add(url);
65
+ chrome.browserAction.setBadgeText({text: modifiedUrls.size.toString()});
66
+ }
67
}
68
69
// Function to get modified URLs
0 commit comments