diff --git a/src/backend/routes/PublicRouter.ts b/src/backend/routes/PublicRouter.ts index 39e17381..3b18008e 100644 --- a/src/backend/routes/PublicRouter.ts +++ b/src/backend/routes/PublicRouter.ts @@ -120,7 +120,9 @@ export class PublicRouter { icons: [ { src: 'icon_inv.svg', - sizes: 'any', + sizes: "48x48 72x72 96x96 128x128 256x256 512x512", + type: "image/svg+xml", + purpose: "any" }, { src: 'icon_inv.png', @@ -140,16 +142,37 @@ export class PublicRouter { app.get('/icon.svg', (req: Request, res: Response) => { res.set('Cache-control', 'public, max-age=31536000'); + res.header('Content-Type', 'image/svg+xml'); res.send('' + ''); }); - app.get('/icon_inv.svg', (req: Request, res: Response) => { + + app.get('/icon_auto.svg', (req: Request, res: Response) => { res.set('Cache-control', 'public, max-age=31536000'); + res.header('Content-Type', 'image/svg+xml'); res.send('' + - ''); + '' + + ''); + }); + + app.get('/icon_inv.svg', (req: Request, res: Response) => { + res.set('Cache-control', 'public, max-age=31536000'); + res.header('Content-Type', 'image/svg+xml'); + res.send('' + + ''); }); @@ -169,7 +192,7 @@ export class PublicRouter { app.get('/icon_inv.png', async (req: Request, res: Response, next: NextFunction) => { try { const p = path.join(ProjectPath.TempFolder, '/icon_inv.png'); - await PhotoProcessing.renderSVG(Config.Server.svgIcon, p, '#FFF'); + await PhotoProcessing.renderSVG(Config.Server.svgIcon, p, 'white'); res.sendFile(p, { maxAge: 31536000, dotfiles: 'allow', diff --git a/src/frontend/index.html b/src/frontend/index.html index 3b177d06..90b25236 100644 --- a/src/frontend/index.html +++ b/src/frontend/index.html @@ -4,7 +4,7 @@ Loading.. - + @@ -12,7 +12,7 @@ - +