Skip to content

Commit fc3894e

Browse files
committed
Fix crawl when no extra-domains are passed.
1 parent 7b9e34c commit fc3894e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/commands/crawl.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ command.handler = async function(argv) {
171171
hostname,
172172
];
173173

174-
crawl.domainWhitelist.push(argv['extra-domains'].split(',').map((d) => d.trim()));
174+
if (argv['extra-domains']) {
175+
crawl.domainWhitelist.push(argv['extra-domains'].split(',').map((d) => d.trim()));
176+
}
175177

176178
const fetchCallback = async function(queueItem, responseBuffer, response) {
177179
const extraItems = [];

0 commit comments

Comments
 (0)