Index: lib/filterClasses.js |
=================================================================== |
--- a/lib/filterClasses.js |
+++ b/lib/filterClasses.js |
@@ -18,17 +18,17 @@ |
"use strict"; |
/** |
* @fileOverview Definition of Filter class and its subclasses. |
*/ |
const {extend} = require("./coreUtils"); |
const {filterToRegExp} = require("./common"); |
-const {normalizeHostname, suffixes} = require("./domain"); |
+const {normalizeHostname, domainSuffixes} = require("./url"); |
const {filterNotifier} = require("./filterNotifier"); |
const resources = require("../data/resources.json"); |
/** |
* Map of internal resources for URL rewriting. |
* @type {Map.<string,string>} |
*/ |
@@ -601,17 +601,17 @@ |
if (!domains) |
return true; |
// If the document has no host name, match only if the filter |
// isn't restricted to specific domains |
if (!docDomain) |
return domains.get(""); |
- for (docDomain of suffixes(normalizeHostname(docDomain))) |
+ for (docDomain of domainSuffixes(normalizeHostname(docDomain))) |
{ |
let isDomainIncluded = domains.get(docDomain); |
if (typeof isDomainIncluded != "undefined") |
return isDomainIncluded; |
} |
return domains.get(""); |
}, |