mirror of
https://github.com/wassname/talk.git
synced 2026-07-30 12:40:41 +08:00
fix: check if auth params exist in hash before clearing it (#2666)
This commit is contained in:
committed by
Kim Gardner
parent
e816f8e019
commit
e91da1c9a3
@@ -22,7 +22,7 @@ export default async function initLocalState(
|
||||
|
||||
// Get all the parameters from the hash.
|
||||
const params = getParamsFromHash();
|
||||
if (params) {
|
||||
if (params && (params.accessToken || params.error)) {
|
||||
// If there were params in the hash, then clear them!
|
||||
clearHash();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user