]> khamidou — GitHub mirrors - electron.git/commitdiff
err undefined
authorAlexander Salas <a.salas@ieee.org>
Sun, 20 Sep 2015 22:28:41 +0000 (17:58 -0430)
committerAlexander Salas <a.salas@ieee.org>
Sun, 20 Sep 2015 22:28:41 +0000 (17:58 -0430)
docs/api/web-contents.md

index e8f72cd24bf25f6612b25490c372f57813c73d93..3b7363fd567e678f73ea56974760bd387f5d5074 100644 (file)
@@ -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.");
     })