fixup! Fix: match subdomain
This commit is contained in:
parent
99626e4a48
commit
4d42765d6c
|
@ -386,7 +386,6 @@ const styleManager = (() => {
|
||||||
}
|
}
|
||||||
|
|
||||||
function urlMatchSection(url, section) {
|
function urlMatchSection(url, section) {
|
||||||
// FIXME: match sub domains?
|
|
||||||
const domain = getDomain(url);
|
const domain = getDomain(url);
|
||||||
if (section.domains && section.domains.some(d => d === domain || domain.endsWith(`.${d}`))) {
|
if (section.domains && section.domains.some(d => d === domain || domain.endsWith(`.${d}`))) {
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user