diff --git a/README.md b/README.md index 275dbb1..3f3a1d3 100644 --- a/README.md +++ b/README.md @@ -145,7 +145,7 @@ config = { }, // To run Node application as Windows service - "cliOptions": { + "childProcessOptions": { "detached": true } diff --git a/lib/pdf.js b/lib/pdf.js index c071258..4ca1afd 100644 --- a/lib/pdf.js +++ b/lib/pdf.js @@ -84,7 +84,7 @@ PDF.prototype.toFile = function PdfToFile (filename, callback) { } PDF.prototype.exec = function PdfExec (callback) { - var child = childprocess.spawn(this.options.phantomPath, [].concat(this.options.phantomArgs, [this.script]), this.options.cliOptions) + var child = childprocess.spawn(this.options.phantomPath, [].concat(this.options.phantomArgs, [this.script]), this.options.childProcessOptions) var stderr = [] var timeout = setTimeout(function execTimeout () {