Fix webContents.print() (#17052)
This commit is contained in:
parent
944cdb4430
commit
1674388028
2 changed files with 2 additions and 2 deletions
|
@ -313,7 +313,7 @@ WebContents.prototype.printToPDF = function (options) {
|
|||
|
||||
WebContents.prototype.print = function (...args) {
|
||||
if (features.isPrintingEnabled()) {
|
||||
this._print(args)
|
||||
this._print(...args)
|
||||
} else {
|
||||
console.error('Error: Printing feature is disabled.')
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue