mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
chore: use replace state when omitting OAuth code
This commit is contained in:
parent
fb5c0d7e62
commit
a34489d8c9
1 changed files with 1 additions and 1 deletions
|
|
@ -150,7 +150,7 @@ async function trySetUpAccessTokenWithCode() {
|
|||
const search = parseURLSearch()
|
||||
if ('code' in search) {
|
||||
const accessToken = await platform.setOAuth(search.code)
|
||||
window.history.pushState(
|
||||
window.history.replaceState(
|
||||
{},
|
||||
'removed search param',
|
||||
window.location.pathname.replace(window.location.search, ''),
|
||||
|
|
|
|||
Loading…
Reference in a new issue