Skip to content

Commit

Permalink
fix: When the user presses 'backbutton' the history is cleared
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Junk committed Nov 27, 2023
1 parent b363c2f commit 5dff257
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,14 @@
};
</script>

<svelte:window on:dragover={disable} on:drop={disable} />
<svelte:window
on:dragover={disable}
on:drop={disable}
on:popstate={() => {
appStore.setFeedErrorMsg("");
appStore.setSingleErrorMsg("");
}}
/>

<div class="content">
<!-- svelte-ignore a11y-no-redundant-roles -->
Expand Down

0 comments on commit 5dff257

Please sign in to comment.