Update src/vector/app.tsx

pull/16415/head
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
1 changed files with 1 additions and 1 deletions

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);