err undefined
This commit is contained in:
parent
7bb9595b81
commit
40b861bc9c
1 changed files with 1 additions and 1 deletions
|
@ -415,7 +415,7 @@ win.webContents.on("did-finish-load", function() {
|
|||
win.webContents.printToPDF({}, function(error, data) {
|
||||
if (error) throw error;
|
||||
fs.writeFile("/tmp/print.pdf", data, function(error) {
|
||||
if (err)
|
||||
if (error)
|
||||
throw error;
|
||||
console.log("Write PDF successfully.");
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue