always inject umami

This commit is contained in:
DaKheera47 2026-01-16 15:37:10 +00:00
parent e56aa1aa03
commit edcec85b34

View File

@ -121,8 +121,7 @@ export function createApp() {
if (!cachedIndexHtml) {
cachedIndexHtml = await readFile(indexPath, 'utf-8');
}
const isAuthenticated = authGuard.basicAuthEnabled && authGuard.isAuthorized(req);
const html = isAuthenticated ? cachedIndexHtml : injectUmami(cachedIndexHtml);
const html = injectUmami(cachedIndexHtml);
res.setHeader('Content-Type', 'text/html; charset=utf-8');
res.send(html);
});