mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
code review re. #1735
This commit is contained in:
parent
08dd67b854
commit
0870aea2eb
1 changed files with 2 additions and 3 deletions
|
@ -392,15 +392,14 @@ housekeep itself.
|
|||
};
|
||||
|
||||
// https://github.com/gorhill/uBlock/issues/1735
|
||||
// Always push before committing, to allow popup detector code to do its
|
||||
// job.
|
||||
// Filter for popups if actually committing.
|
||||
var commit = function(tabId, url) {
|
||||
var entry = tabContexts[tabId];
|
||||
if ( entry === undefined ) {
|
||||
entry = push(tabId, url);
|
||||
} else {
|
||||
entry.push(url);
|
||||
entry.commit(url);
|
||||
popupCandidateTest(tabId);
|
||||
}
|
||||
return entry;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue