mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-08 06:55:26 +02:00
Renamed favicon variable in app.ts
This commit is contained in:
parent
21829fc190
commit
2712378370
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ const app = express();
|
||||||
const localConfig = rcParser.getConfiguration();
|
const localConfig = rcParser.getConfiguration();
|
||||||
|
|
||||||
// Get url to upload favicon from config
|
// Get url to upload favicon from config
|
||||||
const faviconURL: string = appConfig.get('favicon');
|
const favicon: string = appConfig.get('favicon');
|
||||||
|
|
||||||
app.locals.config = localConfig;
|
app.locals.config = localConfig;
|
||||||
// view engine setup
|
// view engine setup
|
||||||
|
@ -25,7 +25,7 @@ app.set('view engine', 'twig');
|
||||||
require('./utils/twig');
|
require('./utils/twig');
|
||||||
|
|
||||||
// Upload favicon by url, it's path on server is '/temp/favicon.{format}'
|
// 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;
|
app.locals.favicon = res;
|
||||||
console.log('Favicon successfully uploaded');
|
console.log('Favicon successfully uploaded');
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue