This commit is contained in:
Viet Huynh
2023-09-18 04:51:18 +07:00
parent fa279ee24f
commit d059c57587
+2 -2
View File
@@ -36,7 +36,7 @@ let allowedDomainCount = 0;
// Read allowlist
console.log(`Processing ${allowlistFilename}`);
await readFile(resolve(allowlistFilename), (line) => {
await readFile(resolve(`./${allowlistFilename}`), (line) => {
const _line = line.trim();
if (!_line) return;
@@ -52,7 +52,7 @@ await readFile(resolve(allowlistFilename), (line) => {
// Read blocklist
console.log(`Processing ${blocklistFilename}`);
await readFile(resolve(blocklistFilename), (line, rl) => {
await readFile(resolve(`./${blocklistFilename}`), (line, rl) => {
if (domains.length === LIST_ITEM_LIMIT) {
return;
}