From a73c91951490d3f0c2e8ded398123f3dde094372 Mon Sep 17 00:00:00 2001 From: Makito Date: Sat, 29 Nov 2025 15:33:40 +0900 Subject: [PATCH] fix(stage-web): reduce the timeout guard for MutationObserver to 15 secs --- apps/stage-web/src/main.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/stage-web/src/main.ts b/apps/stage-web/src/main.ts index 9331ec109..ade963ab5 100644 --- a/apps/stage-web/src/main.ts +++ b/apps/stage-web/src/main.ts @@ -81,8 +81,7 @@ if (import.meta.env.DEV && !import.meta.env.SSR) { observer.observe(document.body, { childList: true, subtree: true }) - // Disconnect on timeout (in case) - setTimeout(() => { - observer.disconnect() // Safe to call even if already disconnected - }, 60 * 1000) + // Disconnect on timeout in case the MutationObserver is left here forever. + // `observer.disconnect()` is idempotent, so it's safe to call it multiple times. + setTimeout(() => observer.disconnect(), 15 * 1000) }