Skip to content

Commit

Permalink
Merge pull request #15 from hannes-dahlberg/patch-1
Browse files Browse the repository at this point in the history
Update resolve.js for Electron 1.0+
  • Loading branch information
inxilpro authored Jul 22, 2016
2 parents 4894c8c + d923200 commit 54de719
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/resolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = function resolve(dirname) {

// Defer to main process in electron
if ('type' in process && 'renderer' === process.type) {
var remote = require('remote');
var remote = require('electron').remote;
return remote.require('app-root-path').path;
}

Expand Down Expand Up @@ -69,4 +69,4 @@ module.exports = function resolve(dirname) {

// Return
return appRootPath;
};
};

0 comments on commit 54de719

Please sign in to comment.