chore: use replace state when omitting OAuth code

This commit is contained in:
EnixCoda 2020-04-09 14:23:47 +08:00
parent fb5c0d7e62
commit a34489d8c9
No known key found for this signature in database
GPG key ID: FE06F5DFC1C9B8E4

View file

@ -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, ''),