mirror of https://github.com/gorhill/uBlock.git
this fixes #72
This commit is contained in:
parent
2050c187be
commit
1eda476869
|
@ -125,7 +125,7 @@ var onTabsReceived = function(tabs) {
|
||||||
messaging.ask( q, onStatsReceived );
|
messaging.ask( q, onStatsReceived );
|
||||||
};
|
};
|
||||||
|
|
||||||
chrome.tabs.query({ active: true }, onTabsReceived);
|
chrome.tabs.query({ active: true, currentWindow: true }, onTabsReceived);
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -108,6 +108,8 @@
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//console.debug('µBlock> bindTabToPageStats(%d, "%s")', tabId, pageURL);
|
||||||
|
|
||||||
// Reuse page store if one exists: this allows to guess if a tab is
|
// Reuse page store if one exists: this allows to guess if a tab is
|
||||||
// a popup.
|
// a popup.
|
||||||
var pageStore = this.pageStores[tabId];
|
var pageStore = this.pageStores[tabId];
|
||||||
|
@ -117,13 +119,13 @@
|
||||||
pageStore = this.PageStore.factory(tabId, pageURL);
|
pageStore = this.PageStore.factory(tabId, pageURL);
|
||||||
}
|
}
|
||||||
|
|
||||||
//console.log('µBlock> bindTabToPageStats(%d, "%s")', tabId, pageURL);
|
|
||||||
this.pageStores[tabId] = pageStore;
|
this.pageStores[tabId] = pageStore;
|
||||||
|
|
||||||
return pageStore;
|
return pageStore;
|
||||||
};
|
};
|
||||||
|
|
||||||
µBlock.unbindTabFromPageStats = function(tabId) {
|
µBlock.unbindTabFromPageStats = function(tabId) {
|
||||||
|
//console.debug('µBlock> unbindTabFromPageStats(%d)', tabId);
|
||||||
delete this.pageStores[tabId];
|
delete this.pageStores[tabId];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue