mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
[mv3] Minor code review
This commit is contained in:
parent
5957656a5b
commit
4194fdec4b
2 changed files with 4 additions and 0 deletions
|
|
@ -60,6 +60,8 @@ self.isolatedAPI.forEachHostname(lookupAll, {
|
|||
});
|
||||
proceduralImports.length = 0;
|
||||
|
||||
if ( selectors.length === 0 ) { return; }
|
||||
|
||||
const exceptedSelectors = exceptions.length !== 0
|
||||
? selectors.filter(a => exceptions.includes(JSON.stringify(a)) === false)
|
||||
: selectors;
|
||||
|
|
|
|||
|
|
@ -58,6 +58,8 @@ self.isolatedAPI.forEachHostname(lookupAll, {
|
|||
|
||||
specificImports.length = 0;
|
||||
|
||||
if ( selectors.length === 0 ) { return; }
|
||||
|
||||
const exceptedSelectors = exceptions.length !== 0
|
||||
? selectors.filter(a => exceptions.includes(a) === false)
|
||||
: selectors;
|
||||
|
|
|
|||
Loading…
Reference in a new issue