Commit 11c2f674 11c2f6741cba4655ea7bb08388d8485f3424af7d by Nicolas Perriault

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

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