projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
673f4f4
)
Search for module under the app directory
author
Ryohei Ikegami
<iofg2100@gmail.com>
Mon, 3 Apr 2017 11:12:02 +0000
(20:12 +0900)
committer
Ryohei Ikegami
<iofg2100@gmail.com>
Mon, 3 Apr 2017 11:19:10 +0000
(20:19 +0900)
lib/renderer/init.js
patch
|
blob
|
history
diff --git
a/lib/renderer/init.js
b/lib/renderer/init.js
index
38441c9
..
c6fd6a2
100644
(file)
--- a/
lib/renderer/init.js
+++ b/
lib/renderer/init.js
@@
-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.