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:
d42d10a
)
Use require to load package json
author
Kevin Sawicki
<kevinsawicki@gmail.com>
Wed, 6 Jul 2016 21:19:47 +0000
(14:19 -0700)
committer
Kevin Sawicki
<kevinsawicki@gmail.com>
Wed, 6 Jul 2016 21:19:47 +0000
(14:19 -0700)
default_app/main.js
patch
|
blob
|
history
diff --git
a/default_app/main.js
b/default_app/main.js
index dd887e0def1eea9aaf11d3d5b65def9ddc063db5..181f2f00a9be3f60d32fc350f576ce070d911a1d 100644
(file)
--- a/
default_app/main.js
+++ b/
default_app/main.js
@@
-229,7
+229,7
@@
function loadApplicationPackage (packagePath) {
if (fs.existsSync(packageJsonPath)) {
let packageJson
try {
- packageJson =
JSON.parse(fs.readFileSync(packageJsonPath)
)
+ packageJson =
require(packageJsonPath
)
} catch (e) {
showErrorMessage(`Unable to parse ${packageJsonPath}\n\n${e.message}`)
return