0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

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

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);