fixup! Fix: match subdomain

This commit is contained in:
eight 2018-10-11 23:55:16 +08:00
parent 99626e4a48
commit 4d42765d6c

View File

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