diff options
author | Wu Cheng-Han | 2017-03-20 01:54:44 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2017-03-20 01:54:44 +0800 |
commit | 19a64f6b06ef74f760b5b8799a21425130910044 (patch) | |
tree | 3e157dba22deb523c2247a55c2cb69213511906a | |
parent | 448b0061945b65dc36c08eaf6752060600d5895d (diff) |
Fix typo and possible wrong value on provider is false on generating front-end constants
Diffstat (limited to '')
-rw-r--r-- | app.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |