deploy: 02e1cb00e0210b23132c676c7310ed4f5aa90d58

This commit is contained in:
SukkaBot
2022-09-25 14:25:12 +00:00
parent 96b753d6da
commit 2c76356a48
5 changed files with 39 additions and 32 deletions

View File

@@ -55,6 +55,8 @@ async function processDomainLists (domainListsUrl) {
* @param {string | URL} hostsUrl
*/
async function processHosts (hostsUrl, includeAllSubDomain = false) {
console.time(` - processHosts: ${hostsUrl}`);
if (typeof hostsUrl === 'string') {
hostsUrl = new URL(hostsUrl);
}
@@ -87,6 +89,8 @@ async function processHosts (hostsUrl, includeAllSubDomain = false) {
}
});
console.timeEnd(` - processHosts: ${hostsUrl}`);
return [...domainSets];
}
@@ -98,10 +102,6 @@ async function processHosts (hostsUrl, includeAllSubDomain = false) {
async function processFilterRules (filterRulesUrl, fallbackUrls) {
console.time(` - processFilterRules: ${filterRulesUrl}`);
if (typeof filterRulesUrl === 'string') {
filterRulesUrl = new URL(filterRulesUrl);
}
/** @type Set<string> */
const whitelistDomainSets = new Set();
/** @type Set<string> */