Skip to content

Commit

Permalink
Adds console feedback for broken-links command
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Alfaro committed Oct 16, 2018
1 parent 66a3cfe commit 5a8a609
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions broken-links.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ async function getImages(url , index=0, browser){
waitUntil: 'networkidle2',
timeout: 0
});
console.log(`checking ${new_url}`);
let images_links = await page.$$eval('body.error404', image => image);
if (images_links.length > 0) {
// await page.screenshot({path: `page-${index}.png`, fullPage: true });
Expand Down

0 comments on commit 5a8a609

Please sign in to comment.