use absolute path to driver.js

main
bitmage 8 years ago
parent 9f25ef1913
commit 3bedba84f8

@ -6,7 +6,7 @@ const
phantomjs = require('phantomjs-prebuilt'); phantomjs = require('phantomjs-prebuilt');
exports.run = function(args, callback) { exports.run = function(args, callback) {
args.unshift.apply(args, ['driver.js', '--web-security=false', '--load-images=false', '--ignore-ssl-errors=yes', '--ssl-protocol=any']); args.unshift.apply(args, [path.join(__dirname, 'driver.js'), '--web-security=false', '--load-images=false', '--ignore-ssl-errors=yes', '--ssl-protocol=any']);
var driver = phantomjs.exec.apply(this, args); var driver = phantomjs.exec.apply(this, args);

Loading…
Cancel
Save