mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-24 06:34:57 +01:00
Update adblock-server.js
This commit is contained in:
parent
bff455e919
commit
d7b0a5d02e
@ -81,7 +81,7 @@ else {
|
|||||||
const adblockCosmetic = engine.getCosmeticsFilters({
|
const adblockCosmetic = engine.getCosmeticsFilters({
|
||||||
url: askUrl,
|
url: askUrl,
|
||||||
hostname: fullUrl.hostname,
|
hostname: fullUrl.hostname,
|
||||||
domain: tldts.parse(fullUrl).domain
|
domain: tldts.getDomain(fullUrl.hostname)
|
||||||
});
|
});
|
||||||
|
|
||||||
resultJson["cosmetic"] = adblockCosmetic;
|
resultJson["cosmetic"] = adblockCosmetic;
|
||||||
@ -115,4 +115,4 @@ else {
|
|||||||
server.listen(port, hostname, () => {
|
server.listen(port, hostname, () => {
|
||||||
console.log(`adblocker: Server started at local port ${port}.`);
|
console.log(`adblocker: Server started at local port ${port}.`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user