summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorWu Cheng-Han2016-10-23 22:42:47 +0800
committerWu Cheng-Han2016-10-23 22:42:47 +0800
commite6dfc749f6448cb6f2cbab02e459c7ce86e8a106 (patch)
tree66ff0578b7739c2a990673b777dce680bc0d455c /lib
parentd37321e28de0445322055ef20306d838b02a6f87 (diff)
Fix config.js use cdn option not parse properly and add missing cdn resources
Diffstat (limited to 'lib')
-rw-r--r--lib/config.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/config.js b/lib/config.js
index 0aa154bc..76b21f0d 100644
--- a/lib/config.js
+++ b/lib/config.js
@@ -17,7 +17,7 @@ var protocolusessl = (usessl === true && typeof process.env.HMD_PROTOCOL_USESSL
? true : (process.env.HMD_PROTOCOL_USESSL ? (process.env.HMD_PROTOCOL_USESSL === 'true') : !!config.protocolusessl);
var urladdport = process.env.HMD_URL_ADDPORT ? (process.env.HMD_URL_ADDPORT === 'true') : !!config.urladdport;
-var usecdn = process.env.HMD_USECDN ? (process.env.HMD_USECDN === 'true') : !!!config.usecdn;
+var usecdn = process.env.HMD_USECDN ? (process.env.HMD_USECDN === 'true') : ((typeof config.usecdn === 'boolean') ? config.usecdn : true);
// db
var db = config.db || {