docs: fix return type of getPrinters (#21411)

This commit is contained in:
Shelley Vohr 2019-12-06 12:36:35 -08:00 committed by Samuel Attard
parent 5bc8809d64
commit 4ac575416f
2 changed files with 2 additions and 1 deletions

View file

@ -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])`

View file

@ -276,6 +276,7 @@ WebContents.prototype.getPrinters = function () {
return this._getPrinters()
} else {
console.error('Error: Printing feature is disabled.')
return []
}
}