Update src/vector/app.tsx

This commit is contained in:
Michael Telatynski 2021-02-11 16:27:55 +00:00 committed by GitHub
parent e15d1c1501
commit 438eef0acd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -121,7 +121,7 @@ function onTokenLoginCompleted() {
// clear them.
const url = new URL(window.location.href);
url.searchParams.delete('loginToken');
url.searchParams.delete("loginToken");
console.log(`Redirecting to ${url.href} to drop loginToken from queryparams`);
window.history.replaceState(null, "", url.href);