diff options
author | Wu Cheng-Han | 2016-10-23 22:42:47 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-10-23 22:42:47 +0800 |
commit | e6dfc749f6448cb6f2cbab02e459c7ce86e8a106 (patch) | |
tree | 66ff0578b7739c2a990673b777dce680bc0d455c /lib | |
parent | d37321e28de0445322055ef20306d838b02a6f87 (diff) |
Fix config.js use cdn option not parse properly and add missing cdn resources
Diffstat (limited to 'lib')
-rw-r--r-- | lib/config.js | 2 |
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 || { |