mirror of
https://github.com/gorhill/uBlock.git
synced 2025-10-05 21:32:39 +02:00
[mv3] Minor code change
This commit is contained in:
@@ -310,11 +310,14 @@ function registerProcedural(context) {
|
||||
js.push('/js/scripting/css-procedural.js');
|
||||
|
||||
const excludeMatches = [];
|
||||
if ( none.has('all-urls') === false ) {
|
||||
excludeMatches.push(...ut.matchesFromHostnames(none));
|
||||
}
|
||||
if ( basic.has('all-urls') === false ) {
|
||||
excludeMatches.push(...ut.matchesFromHostnames(basic));
|
||||
if ( none.has('all-urls') === false && basic.has('all-urls') === false ) {
|
||||
const toExclude = [
|
||||
...ut.matchesFromHostnames(none),
|
||||
...ut.matchesFromHostnames(basic),
|
||||
];
|
||||
for ( const hn of toExclude ) {
|
||||
excludeMatches.push(hn);
|
||||
}
|
||||
}
|
||||
|
||||
const registered = before.get('css-procedural');
|
||||
|
Reference in New Issue
Block a user