From 95a0cb53d3477905f0a86eadd0166ebd3df217c5 Mon Sep 17 00:00:00 2001 From: whyzdev Date: Sat, 10 Dec 2016 16:21:21 -0500 Subject: [PATCH] fix gantt chart cli configuration parsing including functions --- lib/phantomscript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/phantomscript.js b/lib/phantomscript.js index 4e10803512..05cd881995 100644 --- a/lib/phantomscript.js +++ b/lib/phantomscript.js @@ -41,7 +41,7 @@ var options = { , svg: system.args[3] === 'true' ? true : false , css: fs.read(system.args[4]) , sequenceConfig: system.args[5] !== 'null' ? JSON.parse(fs.read(system.args[5])) : '{}' - , ganttConfig: system.args[6] !== 'null' ? fs.read(system.args[6]) : '{}' + , ganttConfig: system.args[6] !== 'null' ? JSON.parse(fs.read(system.args[6])) : '{}' , verbose: system.args[7] === 'true' ? true : false , width: width }