Breaking: make exclude-by-domain command exclude sub-domain
This commit is contained in:
parent
162e5fe744
commit
439386f090
|
@ -361,7 +361,7 @@ function styleExcluded({exclusions}, type) {
|
||||||
function getExcludeRule(type) {
|
function getExcludeRule(type) {
|
||||||
const u = new URL(tabURL);
|
const u = new URL(tabURL);
|
||||||
if (type === 'domain') {
|
if (type === 'domain') {
|
||||||
return u.origin + '/*';
|
return u.protocol + '//*.' + u.host + '/*';
|
||||||
}
|
}
|
||||||
return escapeGlob(u.origin + u.pathname) + '*';
|
return escapeGlob(u.origin + u.pathname) + '*';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user