1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-08-07 22:45:23 +02:00

Renamed favicon variable in app.ts

This commit is contained in:
slaveeks 2022-07-06 12:40:15 +03:00
parent 21829fc190
commit 2712378370

View file

@ -16,7 +16,7 @@ const app = express();
const localConfig = rcParser.getConfiguration();
// Get url to upload favicon from config
const faviconURL: string = appConfig.get('favicon');
const favicon: string = appConfig.get('favicon');
app.locals.config = localConfig;
// view engine setup
@ -25,7 +25,7 @@ app.set('view engine', 'twig');
require('./utils/twig');
// Upload favicon by url, it's path on server is '/temp/favicon.{format}'
downloadFavicon(faviconURL).then((res) => {
downloadFavicon(favicon).then((res) => {
app.locals.favicon = res;
console.log('Favicon successfully uploaded');
})