mirror of
https://github.com/status-im/codimd.git
synced 2025-01-11 23:14:24 +00:00
Fix typo and possible wrong value on provider is false on generating front-end constants
This commit is contained in:
parent
448b006194
commit
19a64f6b06
6
app.js
6
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user