diff --git a/postoffice/src/App.svelte b/postoffice/src/App.svelte index 38b191b..7e3f49e 100644 --- a/postoffice/src/App.svelte +++ b/postoffice/src/App.svelte @@ -26,7 +26,9 @@ localStorage.setItem("receivingEmail", receivingEmail) if (reload) { - window.location.reload(); + // use this instead of window.location.reload(); to avoid resending POST requests + // @ts-ignore + window.location = window.location.href; } }