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 8a9ad94 commit fe32ee9Copy full SHA for fe32ee9
1 file changed
src/js/background.js
@@ -148,7 +148,7 @@ function Badger(from_qunit) {
148
149
if (self.criticalError == "Privacy Badger failed to initialize") {
150
delete self.criticalError;
151
- badger.updateBadge();
+ self.updateBadge();
152
}
153
154
if (!from_qunit) {
@@ -996,11 +996,15 @@ Badger.prototype = {
996
997
998
if (tab_id === null) {
999
- chrome.tabs.query({ active: true, lastFocusedWindow: true }, (tabs) => {
+ chrome.tabs.query({
1000
+ active: true,
1001
+ lastFocusedWindow: true
1002
+ }, function (tabs) {
1003
if (tabs[0]) {
1004
_update(tabs[0]);
1005
1006
});
1007
+
1008
} else {
1009
chrome.tabs.get(tab_id, function (tab) {
1010
_update(tab);
0 commit comments