@samitouri / QOSami-HFS / commits / d82a13fe

fix: favicon.ico 404 when no icon is provided

Massimo Melina committed Jun 3, 2023 at 10:28 UTC d82a13feb9f8c97f42b62e933e40b3911df7b50f
1 file changed +1 -1
src/serveGuiFiles.ts
+1 -1
@@ -91,7 +91,7 @@ async function treatIndex(ctx: Koa.Context, filesUri: string, body: string) {
91 .replace('<body>', () => `<body>
92 ${!isFrontend ? '' : `
93 <title>${title.get()}</title>
94 - <link rel="icon" href="${favicon.get() ? '/favicon.ico' : 'data:;'}" />
94 + <link rel="shortcut icon" href="${favicon.get() ? '/favicon.ico' : '#'}" />
95 `}
96 <script>
97 HFS = ${JSON.stringify({