fix(stats): restrict local requests and serve the dashboard over HTTP (#263)

This commit is contained in:
sudacode authored and GitHub committed 2026-09-20 23:36:55 -07:00
1 parent 2f21582666
commit ab48a5678e
16 files changed
+221 -157

No files matched your search

-2
View File
@@ -4138,7 +4138,6 @@ const immersionTrackerStartupMainDeps: Parameters<
// Register stats overlay toggle IPC handler (idempotent)
registerStatsOverlayToggle({
staticDir: statsDistPath,
preloadPath: statsPreloadPath,
getApiBaseUrl: async () => (await ensureStatsServerStarted()).url,
onStartupError: (error) =>
@@ -5442,7 +5441,6 @@ async function dispatchSessionAction(request: SessionActionDispatchRequest): Pro
await dispatchSessionActionCore(request, {
toggleStatsOverlay: async () =>
await toggleStatsOverlayWindow({
staticDir: statsDistPath,
preloadPath: statsPreloadPath,
getApiBaseUrl: async () => (await ensureStatsServerStarted()).url,
onStartupError: (error) =>