Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
garris committed Nov 6, 2019
1 parent 273a9ad commit b0dbe3e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions core/util/runPuppet.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,10 @@ async function captureScreenshot (page, browser, selector, selectorMap, config,
filePath = selectorMap[selector].filePath;
ensureDirectoryPath(filePath);


/*
Setting config.mergeImgHack == true will use an alternate screen grab technique
whereby the screen
Setting config.mergeImgHack == true will use an alternate screen grab method which
takes multple screenshots at periodic scroll positions then stitches them all togther
into one single screenshot.
*/
if (fullPage && config.mergeImgHack) {
// Safer version of `document` selector
Expand Down Expand Up @@ -398,7 +398,6 @@ async function captureScreenshot (page, browser, selector, selectorMap, config,
});
});
}

await bodyHandle.dispose();
} catch (e) {
console.log(chalk.red(`Error capturing..`), e);
Expand Down Expand Up @@ -463,4 +462,4 @@ function translateUrl (url) {
} else {
return url;
}
}
}

0 comments on commit b0dbe3e

Please sign in to comment.