Search for module under the app directory
This commit is contained in:
parent
673f4f4d0c
commit
50c99e4507
1 changed files with 3 additions and 0 deletions
|
@ -116,6 +116,9 @@ if (nodeIntegration === 'true') {
|
||||||
} else {
|
} else {
|
||||||
global.__filename = __filename
|
global.__filename = __filename
|
||||||
global.__dirname = __dirname
|
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.
|
// Redirect window.onerror to uncaughtException.
|
||||||
|
|
Loading…
Add table
Reference in a new issue