Skip to content

Commit 57c7741

Browse files
joshterrillrogerwang
authored andcommitted
updated Window.md win.print() call
If no options are passed to `win.print()`, then `win.print({})` needs to be called because `win.print()` expects an object.
1 parent 7934380 commit 57c7741

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/References/Window.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,8 @@ Print the web contents in the window without the need for user's interaction. `o
311311
`marginsCustom` example: `"marginsCustom":{"marginBottom":54,"marginLeft":70,"marginRight":28,"marginTop":32}`
312312
`mediaSize` example: `'mediaSize':{'name': 'CUSTOM', 'width_microns': 279400, 'height_microns': 215900, 'custom_display_name':'Letter', 'is_default': true}`
313313

314+
*NOTE: If no options are being passed, `win.print({})` is what should be called.*
315+
314316
## win.setMaximumSize(width, height)
315317

316318
* `width` `{Integer}` the maximum width of the window

0 commit comments

Comments
 (0)