summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Cheng-Han2017-03-20 01:54:44 +0800
committerWu Cheng-Han2017-03-20 01:54:44 +0800
commit19a64f6b06ef74f760b5b8799a21425130910044 (patch)
tree3e157dba22deb523c2247a55c2cb69213511906a
parent448b0061945b65dc36c08eaf6752060600d5895d (diff)
Fix typo and possible wrong value on provider is false on generating front-end constants
Diffstat (limited to '')
-rw-r--r--app.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app.js b/app.js
index f89b0718..d4086be5 100644
--- a/app.js
+++ b/app.js
@@ -36,9 +36,9 @@ var data = {
urlpath: config.urlpath,
debug: config.debug,
version: config.version,
- GOOGLE_API_KEY: config.google && config.google.GOOGLE_API_KEY,
- GOOGLE_CLIENT_ID: config.google && config.google.GOOGLE_CLIENT_ID,
- DROPBOX_APP_KEY: config.dropbox && config.google.DROPBOX_APP_KEY
+ GOOGLE_API_KEY: config.google ? config.google.GOOGLE_API_KEY : '',
+ GOOGLE_CLIENT_ID: config.google ? config.google.GOOGLE_CLIENT_ID : '',
+ DROPBOX_APP_KEY: config.dropbox ? config.dropbox.DROPBOX_APP_KEY : ''
}
ejs.renderFile(constpath, data, {}, function (err, str) {
if (err) throw new Error(err)