Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Commit

Permalink
fix: windows pathing
Browse files Browse the repository at this point in the history
Closes #167
  • Loading branch information
dignifiedquire committed Mar 10, 2017
1 parent 00c3321 commit 895fb86
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Expand Up @@ -17,7 +17,11 @@ var phantomJSExePath = function () {

if (path.extname(phantomSource).toLowerCase() === '.cmd') {
var phantomPackage = require('phantomjs-prebuilt/package.json')
return path.join(path.dirname(phantomSource), '//node_modules/' + phantomPackage._location + '//lib//phantom//', phantomPackage.bin.phantomjs)
return path.join(
path.dirname(phantomSource),
['', 'node_modules', phantomPackage._location, 'lib', 'phantom', ''].join('//'),
phantomPackage.bin.phantomjs
)
}

return phantomSource
Expand Down

0 comments on commit 895fb86

Please sign in to comment.