Correctly pass arguments in PhantomJS driver

main
Elbert Alias 8 years ago
parent 3b20a88d65
commit 560e4e7693

@ -6,9 +6,9 @@ const
phantomjs = require('phantomjs-prebuilt');
exports.run = function(args, callback) {
args.push.apply(['--web-security=no', '--load-images=false', '--ignore-ssl-errors=yes', '--ssl-protocol=any']);
args.unshift.apply(args, ['driver.js', '--web-security=false', '--load-images=false', '--ignore-ssl-errors=yes', '--ssl-protocol=any']);
var driver = phantomjs.exec('driver.js', args);
var driver = phantomjs.exec.apply(this, args);
driver.stdout.on('data', (data) => {
callback(`${data}`, null);

@ -2,7 +2,7 @@
"name": "wappalyzer",
"description": "Uncovers the technologies used on websites",
"homepage": "https://github.com/AliasIO/Wappalyzer",
"version": "3.0.5",
"version": "3.0.6",
"author": "Elbert Alias",
"license": "GPL-3.0",
"repository": {