mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -05:00
fix: lint warning
This commit is contained in:
parent
b1a396d9c5
commit
d0afe78e98
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ module.exports = function(config, auth, storage) {
|
|||
const defaultTitle = 'Verdaccio';
|
||||
let webPage = template
|
||||
.replace(/ToReplaceByVerdaccio/g, base)
|
||||
.replace(/ToReplaceByTitle/g, _.isNil(config.web.title) ? defaultTitle : config.web.title)
|
||||
.replace(/ToReplaceByTitle/g, _.isNil(config.web.title) ? defaultTitle : config.web.title)
|
||||
.replace(/(main.*\.js|style.*\.css)/g, `${base}/-/static/$1`);
|
||||
|
||||
res.setHeader('Content-Type', 'text/html');
|
||||
|
|
Loading…
Reference in a new issue