Skip to content

Commit 19a64f6

Browse files
committed
Fix typo and possible wrong value on provider is false on generating front-end constants
1 parent 448b006 commit 19a64f6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ var data = {
3636
urlpath: config.urlpath,
3737
debug: config.debug,
3838
version: config.version,
39-
GOOGLE_API_KEY: config.google && config.google.GOOGLE_API_KEY,
40-
GOOGLE_CLIENT_ID: config.google && config.google.GOOGLE_CLIENT_ID,
41-
DROPBOX_APP_KEY: config.dropbox && config.google.DROPBOX_APP_KEY
39+
GOOGLE_API_KEY: config.google ? config.google.GOOGLE_API_KEY : '',
40+
GOOGLE_CLIENT_ID: config.google ? config.google.GOOGLE_CLIENT_ID : '',
41+
DROPBOX_APP_KEY: config.dropbox ? config.dropbox.DROPBOX_APP_KEY : ''
4242
}
4343
ejs.renderFile(constpath, data, {}, function (err, str) {
4444
if (err) throw new Error(err)

0 commit comments

Comments
 (0)