diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index 50168477982f..953344397db3 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -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])` diff --git a/lib/browser/api/web-contents.js b/lib/browser/api/web-contents.js index d8dd7b1d9c1f..a6e841e851f9 100644 --- a/lib/browser/api/web-contents.js +++ b/lib/browser/api/web-contents.js @@ -276,6 +276,7 @@ WebContents.prototype.getPrinters = function () { return this._getPrinters() } else { console.error('Error: Printing feature is disabled.') + return [] } }