[mv3] Minor code change

This commit is contained in:
Raymond Hill 2025-10-03 14:45:46 -04:00
parent 5bcdf3731d
commit 41a65315f9
No known key found for this signature in database
GPG key ID: F5630CAE62A14316

View file

@ -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');