mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
err undefined
This commit is contained in:
@@ -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.");
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user