From 19a64f6b06ef74f760b5b8799a21425130910044 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Mon, 20 Mar 2017 01:54:44 +0800 Subject: Fix typo and possible wrong value on provider is false on generating front-end constants --- app.js | 6 +++--- 1 file 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) -- cgit v1.2.3