Merge pull request #1462 from TrumanApp/master

use absolute path to driver.js
main
Elbert Alias 8 years ago committed by GitHub
commit c19cdae288

@ -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