Skip to content

Commit

Permalink
feat(screenshots): Introduce config setting to enable/disable transpa…
Browse files Browse the repository at this point in the history
…rent background images when taking screenshots.
  • Loading branch information
stevebritton committed May 15, 2019
1 parent 3fedad3 commit 27b22ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/screenshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ var renderUrlsToFile = function(ph, options, urls, callbackPerUrl, callbackFinal

utils.log.verbose('Adding page to content collection: ', url);

return page.evaluate(function() {
return page.evaluate(function(transparentBackground) {

var data = {
headers: [],
Expand Down Expand Up @@ -251,7 +251,7 @@ var renderUrlsToFile = function(ph, options, urls, callbackPerUrl, callbackFinal

return data;

}).then(function(data) {
}, transparentBackground).then(function(data) {

// add website content collection
contentCollection.pages.push({
Expand Down

0 comments on commit 27b22ba

Please sign in to comment.