Search for module under the app directory

This commit is contained in:
Ryohei Ikegami 2017-04-03 20:12:02 +09:00
parent 673f4f4d0c
commit 50c99e4507

View file

@ -116,6 +116,9 @@ if (nodeIntegration === 'true') {
} else {
global.__filename = __filename
global.__dirname = __dirname
// Search for module under the app directory
module.paths = module.paths.concat(Module._nodeModulePaths(electron.remote.app.getAppPath()))
}
// Redirect window.onerror to uncaughtException.