Add proxy to the setting (#213)

This commit is contained in:
Gaël Métais
2016-12-20 22:37:20 +08:00
committed by GitHub
parent 5d081f27d1
commit 317b0fc4d7
6 changed files with 36 additions and 4 deletions
+6
View File
@@ -59,6 +59,12 @@ var PhantomasWrapper = function() {
].join(',')
};
// Proxy option can't be set to null or undefined...
// this is why it's set now and not in the object above
if (task.options.proxy) {
options.proxy = task.options.proxy;
}
// Output the command line for debugging purpose
debug('If you want to reproduce the phantomas task only, copy the following command line:');
var optionsString = '';