Skip to content

Commit

Permalink
Cleanup newly added query params after redirect (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrichina authored Oct 19, 2021
1 parent 84aabd3 commit 7ea21f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wallet-account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ export class WalletConnection {
currentUrl.searchParams.delete('public_key');
currentUrl.searchParams.delete('all_keys');
currentUrl.searchParams.delete('account_id');
currentUrl.searchParams.delete('meta');
currentUrl.searchParams.delete('transactionHashes');

window.history.replaceState({}, document.title, currentUrl.toString());
}

Expand Down

0 comments on commit 7ea21f3

Please sign in to comment.