fix(stage-web): reduce the timeout guard for MutationObserver to 15 secs

This commit is contained in:
Makito
2025-11-29 15:33:40 +09:00
parent eaa418ec39
commit a73c919514
+3 -4
View File
@@ -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)
}