Skip to content

Commit

Permalink
Remove commands from the URL after running
Browse files Browse the repository at this point in the history
  • Loading branch information
JSKitty committed Aug 23, 2024
1 parent 00e2a72 commit 236a64d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/dashboard/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,13 @@ onMounted(async () => {
transferAmount.value = parseFloat(urlParams.get('amount')) ?? 0;
showTransferMenu.value = true;
}
// Remove any URL 'commands' after running, so that they don't re-run if a user refreshes
window.history.replaceState(
{},
document.title,
window.location.pathname
);
}
updateLogOutButton();
});
Expand Down

0 comments on commit 236a64d

Please sign in to comment.