Commit 11c2f674 11c2f6741cba4655ea7bb08388d8485f3424af7d by Nicolas Perriault

called script name is now removed from phantom.casperArgs.args array

1 parent 3b285ca1
...@@ -100,6 +100,10 @@ ...@@ -100,6 +100,10 @@
100 phantom.exit(1); 100 phantom.exit(1);
101 } 101 }
102 102
103 // filter out the called script name from casper args
104 phantom.casperArgs.args = phantom.casperArgs.args.filter(function(arg) {
105 return arg !== phantom.casperScript;
106 });
103 phantom.injectJs(phantom.casperScript); 107 phantom.injectJs(phantom.casperScript);
104 } 108 }
105 })(phantom); 109 })(phantom);
......