Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: set returnValue alongside preventDefault so the SongBook unload prompt fires everywhere (#3902)
[._.]/ Adam Eivy7ed1af2f17c8
diff --git a/client/src/pages/SongBookViewer.jsx b/client/src/pages/SongBookViewer.jsxindex 1798135597..2ac825e3b3 100644--- a/client/src/pages/SongBookViewer.jsx+++ b/client/src/pages/SongBookViewer.jsx@@ -356,9 +356,11 @@ export default function SongBookViewer() {pendingExit?.();}, [pendingExit, song]);// Tab close / reload — the browser owns this prompt; preventDefault arms it.+ // `returnValue` is the legacy signal, still what some browsers actually read,+ // so set both or the tab can close without asking.useEffect(() => {if (!isDirty) return undefined;- const onBeforeUnload = (e) => { e.preventDefault(); };+ const onBeforeUnload = (e) => { e.preventDefault(); e.returnValue = ''; };window.addEventListener('beforeunload', onBeforeUnload);return () => window.removeEventListener('beforeunload', onBeforeUnload);}, [isDirty]);