summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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)