oops, need this

This commit is contained in:
gorhill 2014-07-06 20:57:23 -04:00
parent ee610b3aad
commit 4097dbf4c7
1 changed files with 8 additions and 0 deletions

View File

@ -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;