0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-24 23:55:46 -05:00

chore: fix logo 404 error

This commit is contained in:
Juan Picado @jotadeveloper 2019-02-18 23:58:07 +01:00
parent 8cb342786c
commit 7db5b93806
No known key found for this signature in database
GPG key ID: 18AC54485952D158
2 changed files with 2 additions and 2 deletions

View file

@ -58,7 +58,7 @@ module.exports = function(config, auth, storage) {
const webPage = template
.replace(/ToReplaceByVerdaccio/g, base)
.replace(/ToReplaceByTitle/g, _.get(config, 'web.title') ? config.web.title : WEB_TITLE)
.replace(/ToReplaceByLogo/g, _.get(config, 'web.logo') ? config.web.logo : null)
.replace(/ToReplaceByLogo/g, _.get(config, 'web.logo') ? config.web.logo : '')
.replace(/ToReplaceByScope/g, _.get(config, 'web.scope') ? config.web.scope : '');
res.setHeader('Content-Type', 'text/html');

View file

@ -127,7 +127,7 @@ class Header extends Component<IProps, IState> {
renderLogo = (): Node => {
const { logo } = this.props;
if (logo) {
if (logo !== '') {
return <img alt={'logo'} height={'40px'} src={logo} />;
} else {
return <Logo />;