diff --git a/lib/phantom-html2pdf.js b/lib/phantom-html2pdf.js index 7755c83..adaeee6 100644 --- a/lib/phantom-html2pdf.js +++ b/lib/phantom-html2pdf.js @@ -35,8 +35,8 @@ function convert(options, callback) { runnings = options.runnings || '', keepTmpFiles = options.keepTmpFiles === true, paperSize = options.paperSize || {}, - runningsArgs = options.runningsArgs ? JSON.stringify(options.runningsArgs) : ''; - waitImgLoading = options.waitImgLoading + runningsArgs = options.runningsArgs ? JSON.stringify(options.runningsArgs) : '', + waitImgLoading = options.waitImgLoading; /* Create temporary files for PDF, HTML, CSS and JS storage * We need to wait for all of them to finish creating the files before proceeding.