diff --git a/atom/browser/api/lib/web-contents.coffee b/atom/browser/api/lib/web-contents.coffee index 06615e31608..1bb82dec1a6 100644 --- a/atom/browser/api/lib/web-contents.coffee +++ b/atom/browser/api/lib/web-contents.coffee @@ -97,7 +97,7 @@ wrapWebContents = (webContents) -> printingSetting.marginsType = options.marginsType if options.printSelectionOnly printingSetting.shouldPrintSelectionOnly = options.printSelectionOnly - if options.printBackgrounds + if options.printBackground printingSetting.shouldPrintBackgrounds = options.printBackground if options.pageSize and PDFPageSize[options.pageSize] diff --git a/docs/api/browser-window-ko.md b/docs/api/browser-window-ko.md index 38b78459d25..9b8db778f9b 100644 --- a/docs/api/browser-window-ko.md +++ b/docs/api/browser-window-ko.md @@ -992,7 +992,7 @@ Prints windows' web page as PDF with Chromium's preview printing custom settings. By default, an empty `options` will be regarded as -`{marginsType:0, printBackgrounds:false, printSelectionOnly:false, +`{marginsType:0, printBackground:false, printSelectionOnly:false, landscape:false}`. ```javascript diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index dda22e58667..30df1d93371 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -1064,7 +1064,7 @@ Prints windows' web page as PDF with Chromium's preview printing custom settings. By default, an empty `options` will be regarded as -`{marginsType:0, printBackgrounds:false, printSelectionOnly:false, +`{marginsType:0, printBackground:false, printSelectionOnly:false, landscape:false}`. ```javascript