summaryrefslogtreecommitdiff
path: root/ui/routes
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2025-02-25 19:41:40 -0500
committerOwen Jacobson <owen@grimoire.ca>2025-02-25 19:47:47 -0500
commitd37e1e399f28bd2cc4ca695ba87b06a645931daa (patch)
tree11e7e94fa3a5d26ea9a2fcd53d665f7a56b3bd3f /ui/routes
parent8cdc6a686644fbf9de6e91ae622f47e23bf7bb23 (diff)
Remove forced `are you sure` prompt when navigating away.
Diffstat (limited to 'ui/routes')
-rw-r--r--ui/routes/(app)/+layout.svelte4
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';