Skip to content

Commit fe32ee9

Browse files
committed
Fix nits
1 parent 8a9ad94 commit fe32ee9

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/js/background.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function Badger(from_qunit) {
148148

149149
if (self.criticalError == "Privacy Badger failed to initialize") {
150150
delete self.criticalError;
151-
badger.updateBadge();
151+
self.updateBadge();
152152
}
153153

154154
if (!from_qunit) {
@@ -996,11 +996,15 @@ Badger.prototype = {
996996
}
997997

998998
if (tab_id === null) {
999-
chrome.tabs.query({ active: true, lastFocusedWindow: true }, (tabs) => {
999+
chrome.tabs.query({
1000+
active: true,
1001+
lastFocusedWindow: true
1002+
}, function (tabs) {
10001003
if (tabs[0]) {
10011004
_update(tabs[0]);
10021005
}
10031006
});
1007+
10041008
} else {
10051009
chrome.tabs.get(tab_id, function (tab) {
10061010
_update(tab);

0 commit comments

Comments
 (0)