Fix typo and possible wrong value on provider is false on generating front-end constants
This commit is contained in:
parent
448b006194
commit
19a64f6b06
1 changed files with 3 additions and 3 deletions
6
app.js
6
app.js
|
@ -36,9 +36,9 @@ var data = {
|
||||||
urlpath: config.urlpath,
|
urlpath: config.urlpath,
|
||||||
debug: config.debug,
|
debug: config.debug,
|
||||||
version: config.version,
|
version: config.version,
|
||||||
GOOGLE_API_KEY: config.google && config.google.GOOGLE_API_KEY,
|
GOOGLE_API_KEY: config.google ? config.google.GOOGLE_API_KEY : '',
|
||||||
GOOGLE_CLIENT_ID: config.google && config.google.GOOGLE_CLIENT_ID,
|
GOOGLE_CLIENT_ID: config.google ? config.google.GOOGLE_CLIENT_ID : '',
|
||||||
DROPBOX_APP_KEY: config.dropbox && config.google.DROPBOX_APP_KEY
|
DROPBOX_APP_KEY: config.dropbox ? config.dropbox.DROPBOX_APP_KEY : ''
|
||||||
}
|
}
|
||||||
ejs.renderFile(constpath, data, {}, function (err, str) {
|
ejs.renderFile(constpath, data, {}, function (err, str) {
|
||||||
if (err) throw new Error(err)
|
if (err) throw new Error(err)
|
||||||
|
|
Loading…
Reference in a new issue