Closed katyasichov closed 3 years ago
You've added this in the popup's script, this should be situated in js/core.js
Thank you for feedback. I'll make the changes.
I changed the logic. I put the code in core.js and add event listener to chrome.storage. The badge is activated in auxiliary when the content script sends a message. The reason for this : chrome.browserAction.setBadgeText can only be executed in the background file. Let me know if additional changes are needed. Thank you
Fixes https://github.com/mdolr/survol/issues/130. Badge added to the extension icon.