Update adblock-server.js

This commit is contained in:
martinrotter 2021-05-09 06:42:31 +02:00 committed by GitHub
parent bff455e919
commit d7b0a5d02e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ else {
const adblockCosmetic = engine.getCosmeticsFilters({
url: askUrl,
hostname: fullUrl.hostname,
domain: tldts.parse(fullUrl).domain
domain: tldts.getDomain(fullUrl.hostname)
});
resultJson["cosmetic"] = adblockCosmetic;
@ -115,4 +115,4 @@ else {
server.listen(port, hostname, () => {
console.log(`adblocker: Server started at local port ${port}.`);
});
}
}