Skip to content

Commit

Permalink
Unset "failed to init." error upon successful init
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostwords committed Jun 3, 2024
1 parent 2ac1760 commit 8561065
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,15 @@ function Badger(from_qunit) {
console.log("Privacy Badger is ready to rock!");
self.INITIALIZED = true;

if (self.criticalError == "Privacy Badger failed to initialize") {
delete self.criticalError;
chrome.tabs.query({ active: true, lastFocusedWindow: true }, (tabs) => {
if (tabs[0]) {
self.updateBadge(tabs[0].id);
}
});
}

if (!from_qunit) {
self.initYellowlistUpdates();
self.initDntPolicyUpdates();
Expand Down

0 comments on commit 8561065

Please sign in to comment.