Skip to content

Commit

Permalink
Add: match global sections
Browse files Browse the repository at this point in the history
  • Loading branch information
eight04 committed Oct 6, 2018
1 parent fedf844 commit 1f18b13
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions background/style-manager.js
Expand Up @@ -331,6 +331,12 @@ const styleManager = (() => {
if (section.regexps && section.regexps.some(r => compileRe(r).test(url))) {
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;
}

Expand Down

0 comments on commit 1f18b13

Please sign in to comment.