fix: frontend: console error for data;
Massimo Melina committed
Feb 20, 2023 at 12:15 UTC
94bc394b9c80e812002f824e225f310ff0438bd0
1 file changed
+1
-1
src/serveGuiFiles.ts
+1
-1
@@ -58,7 +58,7 @@ async function treatIndex(ctx: Koa.Context, body: string, filesUri: string) {
58
ctx.set('etag', '')
59
return body
60
.replace(/((?:src|href) *= *['"])\/?(?![a-z]+:\/\/)/g, '$1' + filesUri)
61
- .replace('<link rel="icon"/>', `<link rel="icon" href="${favicon.get() ? '/favicon.ico' : 'data;'}" />`)
61
+ .replace('<link rel="icon"/>', `<link rel="icon" href="${favicon.get() ? '/favicon.ico' : 'data:;'}" />`)
62
.replace('_HFS_SESSION_', session instanceof ApiError ? 'null' : JSON.stringify(session))
63
// replacing this text allow us to avoid injecting in frontends that don't support plugins. Don't use a <--comment--> or it will be removed by webpack
64
.replace('_HFS_PLUGINS_', pluginsInjection)