mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-06-01 18:10:17 +12:00
code review re. last commit
This commit is contained in:
parent
4fffc97954
commit
dd90ff1c57
|
@ -676,8 +676,7 @@ vAPI.tabs.select = function(tab) {
|
|||
return;
|
||||
}
|
||||
|
||||
var tabBrowser = getTabBrowser(getOwnerWindow(tab));
|
||||
tabBrowser.selectedTab = tab;
|
||||
getTabBrowser(getOwnerWindow(tab)).selectedTab = tab;
|
||||
};
|
||||
|
||||
/******************************************************************************/
|
||||
|
@ -1791,10 +1790,6 @@ vAPI.onLoadAllCompleted = function() {
|
|||
var µb = µBlock;
|
||||
for ( var tab of this.tabs.getAll() ) {
|
||||
// We're insterested in only the tabs that were already loaded
|
||||
if ( tab.hasAttribute('pending') ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
var tabId = this.tabs.getTabId(tab);
|
||||
var browser = getBrowserForTab(tab);
|
||||
µb.tabContextManager.commit(tabId, browser.currentURI.asciiSpec);
|
||||
|
|
Loading…
Reference in a new issue