Mark deviceName as optional
This commit is contained in:
parent
8ae36c250c
commit
dcb22d34b5
2 changed files with 2 additions and 1 deletions
|
@ -931,7 +931,7 @@ Returns [PrinterInfo[]](structures/printer-info.md)
|
|||
* `silent` Boolean - Don't ask user for print settings. Default is `false`.
|
||||
* `printBackground` Boolean - Also prints the background color and image of
|
||||
the web page. Default is `false`.
|
||||
* `deviceName` String - Set the printer device name to use. Default is `''`.
|
||||
* `deviceName` String (optional) - Set the printer device name to use. Default is `''`.
|
||||
|
||||
Prints window's web page. When `silent` is set to `true`, Electron will pick
|
||||
the system's default printer if `deviceName` is empty and the default settings
|
||||
|
|
|
@ -543,6 +543,7 @@ Stops any `findInPage` request for the `webview` with the provided `action`.
|
|||
* `silent` Boolean - Don't ask user for print settings. Default is `false`.
|
||||
* `printBackground` Boolean - Also prints the background color and image of
|
||||
the web page. Default is `false`.
|
||||
* `deviceName` String (optional) - Set the printer device name to use. Default is `''`.
|
||||
|
||||
Prints `webview`'s web page. Same as `webContents.print([options])`.
|
||||
|
||||
|
|
Loading…
Reference in a new issue