Open sweep-ai[bot] opened 1 year ago
the both counters are nullable even after brands are found, i need to see count of brands
Done.
first counter is undefined second one is 0 even after brands are found, i need to see count of brands
I wasn't able to make changes. This could be due to an unclear request or a bug in my code. As a reminder, comments on a file only modify that file. Comments on a PR (at the bottom of the "conversation" tab) can modify the entire PR. Please try again or contact us on Discord
PR Feedback: 👎
Description
This PR adds a brand counter feature to keep track of the number of brands found on a page and display it in the popup. It also updates the global counter to keep track of the total number of times each brand has been found across all pages.
Summary of Changes
content_script.js
to increment a counter each time a brand is found and save it to the Chrome storage.popup.js
to retrieve the counter for the current page from the storage and display it in the popup.Please review and merge these changes to enable the brand counter feature in the extension.
Fixes #5.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: