Skip to content

Commit 81880af

Browse files
committed
Added check
1 parent e96085d commit 81880af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/background.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ chrome.tabs.onUpdated.addListener(function(tabid, changeinfo, tab) {
317317
return;
318318
}
319319
}
320-
uncloakedTabs.push(dpTabId);
320+
if (dpuncloakindex == -1) uncloakedTabs.push(dpTabId);
321321
} else {
322322
chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
323323
if (tabs[0].windowId == tab.windowId && cloakedTabs.indexOf(tabs[0].windowId+"|"+tabs[0].id) != -1 && dpuncloakindex == -1) {
@@ -327,7 +327,7 @@ chrome.tabs.onUpdated.addListener(function(tabid, changeinfo, tab) {
327327
return;
328328
}
329329
}
330-
uncloakedTabs.push(dpTabId);
330+
if (dpuncloakindex == -1) uncloakedTabs.push(dpTabId);
331331
});
332332
}
333333
}

0 commit comments

Comments
 (0)