mirror of https://github.com/gorhill/uBlock.git
oops, need this
This commit is contained in:
parent
ee610b3aad
commit
4097dbf4c7
|
@ -47,6 +47,14 @@
|
|||
}
|
||||
chrome.tabs.onUpdated.addListener(onTabUpdated);
|
||||
|
||||
function onTabRemoved(tabId) {
|
||||
if ( tabId < 0 ) {
|
||||
return;
|
||||
}
|
||||
µBlock.unbindTabFromPageStats(tabId);
|
||||
}
|
||||
chrome.tabs.onRemoved.addListener(onTabRemoved);
|
||||
|
||||
// Initialize internal state with maybe already existing tabs
|
||||
chrome.tabs.query({ url: '<all_urls>' }, function(tabs) {
|
||||
var i = tabs.length;
|
||||
|
|
Loading…
Reference in New Issue