From 4093700784fac5d157f75920e8d40ba4fd07bac8 Mon Sep 17 00:00:00 2001 From: DaKheera47 Date: Fri, 16 Jan 2026 15:40:12 +0000 Subject: [PATCH] simplify injection --- orchestrator/index.html | 1 + orchestrator/src/server/app.ts | 13 +------------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/orchestrator/index.html b/orchestrator/index.html index 0596f1f..e9fc126 100644 --- a/orchestrator/index.html +++ b/orchestrator/index.html @@ -9,6 +9,7 @@ +
diff --git a/orchestrator/src/server/app.ts b/orchestrator/src/server/app.ts index 67b9de2..3ec66ce 100644 --- a/orchestrator/src/server/app.ts +++ b/orchestrator/src/server/app.ts @@ -61,16 +61,6 @@ function createBasicAuthGuard() { }; } -function injectUmami(html: string): string { - const snippet = - ''; - if (html.includes(snippet)) return html; - if (html.includes('')) { - return html.replace('', `${snippet}\n`); - } - return `${html}\n${snippet}`; -} - export function createApp() { const app = express(); const authGuard = createBasicAuthGuard(); @@ -121,9 +111,8 @@ export function createApp() { if (!cachedIndexHtml) { cachedIndexHtml = await readFile(indexPath, 'utf-8'); } - const html = injectUmami(cachedIndexHtml); res.setHeader('Content-Type', 'text/html; charset=utf-8'); - res.send(html); + res.send(cachedIndexHtml); }); }