diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2025-02-25 19:41:40 -0500 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2025-02-25 19:47:47 -0500 |
| commit | d37e1e399f28bd2cc4ca695ba87b06a645931daa (patch) | |
| tree | 11e7e94fa3a5d26ea9a2fcd53d665f7a56b3bd3f /ui/routes/(app)/+layout.svelte | |
| parent | 8cdc6a686644fbf9de6e91ae622f47e23bf7bb23 (diff) | |
Remove forced `are you sure` prompt when navigating away.
Diffstat (limited to 'ui/routes/(app)/+layout.svelte')
| -rw-r--r-- | ui/routes/(app)/+layout.svelte | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/ui/routes/(app)/+layout.svelte b/ui/routes/(app)/+layout.svelte index d1bd7d0..7818505 100644 --- a/ui/routes/(app)/+layout.svelte +++ b/ui/routes/(app)/+layout.svelte @@ -112,13 +112,9 @@ }); function onbeforeunload(event) { - event.preventDefault(); if (events !== null) { events.close(); } - // For some compat reasons? - event.returnValue = ''; - return ''; } const STORE_KEY_LAST_ACTIVE = 'pilcrow:lastActiveChannel'; |
