From d37e1e399f28bd2cc4ca695ba87b06a645931daa Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Tue, 25 Feb 2025 19:41:40 -0500 Subject: Remove forced `are you sure` prompt when navigating away. --- ui/routes/(app)/+layout.svelte | 4 ---- 1 file changed, 4 deletions(-) (limited to 'ui') 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'; -- cgit v1.2.3