fix: prevent print crash on bad deviceName (#21946)
* fix: prevent print crash on bad deviceName * address review feedback
This commit is contained in:
parent
662b94f46e
commit
2955c67c4e
3 changed files with 44 additions and 3 deletions
|
@ -1260,7 +1260,7 @@ Returns [`PrinterInfo[]`](structures/printer-info.md)
|
|||
* `silent` Boolean (optional) - Don't ask user for print settings. Default is `false`.
|
||||
* `printBackground` Boolean (optional) - 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 `''`.
|
||||
* `deviceName` String (optional) - Set the printer device name to use. Must be the system-defined name and not the 'friendly' name, e.g 'Brother_QL_820NWB' and not 'Brother QL-820NWB'.
|
||||
* `color` Boolean (optional) - Set whether the printed web page will be in color or grayscale. Default is `true`.
|
||||
* `margins` Object (optional)
|
||||
* `marginType` String (optional) - Can be `default`, `none`, `printableArea`, or `custom`. If `custom` is chosen, you will also need to specify `top`, `bottom`, `left`, and `right`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue