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:
parent
2b4550bb31
commit
9f8a054f88
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue