mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-04 01:59:38 +02:00
code review re. #1735
This commit is contained in:
parent
08dd67b854
commit
0870aea2eb
@ -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 New Issue
Block a user