We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c85eca4 commit a82aafaCopy full SHA for a82aafa
cf_list_create.js
@@ -34,6 +34,14 @@ let duplicateDomainCount = 0;
34
let allowedDomainCount = 0;
35
const memoizedNormalizeDomain = memoize(normalizeDomain);
36
37
+// Check if the blocklist.txt and allowlist.txt files exist
38
+for (const filename of [allowlistFilename, blocklistFilename]) {
39
+ if (!existsSync(filename)) {
40
+ console.error(`File not found: ${filename}. Please create a block/allowlist first, or run download_lists.js to download the recommended lists.`);
41
+ process.exit(1);
42
+ }
43
+}
44
+
45
// Read allowlist
46
console.log(`Processing ${allowlistFilename}`);
47
await readFile(resolve(`./${allowlistFilename}`), (line) => {
0 commit comments