diff --git a/mcp/packages/plugin/src/main.ts b/mcp/packages/plugin/src/main.ts index 45396f421d..e721689563 100644 --- a/mcp/packages/plugin/src/main.ts +++ b/mcp/packages/plugin/src/main.ts @@ -1,7 +1,7 @@ import "./style.css"; // get the current theme from the URL -const searchParams = new URLSearchParams(window.location.search); +const searchParams = new URLSearchParams(window.location.hash.split("?")[1]); document.body.dataset.theme = searchParams.get("theme") ?? "light"; // WebSocket connection management