Skip to content

Commit

Permalink
Use __dirname for location instead of process.cwd() under node
Browse files Browse the repository at this point in the history
  • Loading branch information
cdebost committed Jan 29, 2019
1 parent 3d00483 commit 72ee798
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions montage.js
Original file line number Diff line number Diff line change
Expand Up @@ -571,9 +571,10 @@
getLocation: function () {
var location = this.location;
if (!location) {
location = "file://" + process.cwd();
/* jshint -W117 */
location = "file://" + __dirname;
/* jshint +W117 */
}

return location;
},

Expand Down

0 comments on commit 72ee798

Please sign in to comment.