From 52f2e2d55a2cf01c48b4bfb42fb6c1b60fd1a778 Mon Sep 17 00:00:00 2001 From: Marc Bachmann Date: Wed, 27 Sep 2017 02:22:26 +0200 Subject: [PATCH] Rename cliOptions to childProcessOptions --- README.md | 2 +- lib/pdf.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 () {