From 7392be04d744697990309ec1967c3094d89faff3 Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Sun, 12 Jul 2026 18:28:35 +0100 Subject: [PATCH] fix(dashboard): stop rendering mode-watcher init script as visible page text (#740) createInitialModeExpression returns bare JS, not a script tag. Injecting it via {@html} in svelte:head printed setInitialMode source on customer org sites. Let ModeWatcher inject the script correctly instead. Co-authored-by: Cursor Agent Co-authored-by: Rotimi Best --- .../lib/features/app/app-mode-watcher.svelte | 22 +++---------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/apps/dashboard/src/lib/features/app/app-mode-watcher.svelte b/apps/dashboard/src/lib/features/app/app-mode-watcher.svelte index 8e4fdcfb..202b9645 100644 --- a/apps/dashboard/src/lib/features/app/app-mode-watcher.svelte +++ b/apps/dashboard/src/lib/features/app/app-mode-watcher.svelte @@ -1,19 +1,8 @@ - - - {@html initialModeScript} - - - +