feat: accept web.primary_color as config option and inject into webui (#1282)

This commit is contained in:
Jamie Kyle 2019-04-25 12:50:35 -07:00 committed by Juan Picado @jotadeveloper
parent 2b4550bb31
commit 9f8a054f88
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ module.exports = function(config, auth, storage) {
.replace(/ToReplaceByVersion/g, pkgJSON.version)
.replace(/ToReplaceByTitle/g, _.get(config, 'web.title') ? config.web.title : WEB_TITLE)
.replace(/ToReplaceByLogo/g, _.get(config, 'web.logo') ? config.web.logo : '')
.replace(/ToReplaceByPrimaryColor/g, _.get(config, 'web.primary_color') ? config.web.primary_color : '')
.replace(/ToReplaceByScope/g, _.get(config, 'web.scope') ? config.web.scope : '');
res.setHeader('Content-Type', HEADERS.TEXT_HTML);