docs: fix return type of getPrinters (#21411)
This commit is contained in:
parent
5bc8809d64
commit
4ac575416f
2 changed files with 2 additions and 1 deletions
|
@ -1240,7 +1240,7 @@ Captures a snapshot of the page within `rect`. Omitting `rect` will capture the
|
|||
|
||||
Get the system printer list.
|
||||
|
||||
Returns [`PrinterInfo[]`](structures/printer-info.md).
|
||||
Returns [`PrinterInfo[]`](structures/printer-info.md)
|
||||
|
||||
#### `contents.print([options], [callback])`
|
||||
|
||||
|
|
|
@ -276,6 +276,7 @@ WebContents.prototype.getPrinters = function () {
|
|||
return this._getPrinters()
|
||||
} else {
|
||||
console.error('Error: Printing feature is disabled.')
|
||||
return []
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue