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:
parent
8cb342786c
commit
7db5b93806
2 changed files with 2 additions and 2 deletions
|
@ -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');
|
||||
|
|
|
@ -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 />;
|
||||
|
|
Loading…
Add table
Reference in a new issue