Skip to content

Commit

Permalink
Addresses PR #10
Browse files Browse the repository at this point in the history
  • Loading branch information
inxilpro committed Jun 17, 2016
1 parent b8582ab commit 1bb4a36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/resolve.js
Expand Up @@ -27,7 +27,8 @@ module.exports = function resolve(dirname) {

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

var resolved = path.resolve(dirname);
Expand Down

0 comments on commit 1bb4a36

Please sign in to comment.