mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
Merge pull request #2515 from atom/fix-no-print-background
Fix a typing error in option checking: printBackgrounds => printBackground
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user