Add: match global sections
This commit is contained in:
parent
fedf844ddd
commit
1f18b13a92
|
@ -331,6 +331,12 @@ const styleManager = (() => {
|
||||||
if (section.regexps && section.regexps.some(r => compileRe(r).test(url))) {
|
if (section.regexps && section.regexps.some(r => compileRe(r).test(url))) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (
|
||||||
|
(!section.regexps || !section.regexps.length) &&
|
||||||
|
(!section.urlPrefixes || !section.urlPrefixes.length) &&
|
||||||
|
(!section.urls || !section.urls.length) &&
|
||||||
|
(!section.domains || !section.domains.length)
|
||||||
|
)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user