mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Mark deviceName as optional
This commit is contained in:
@@ -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])`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user