Merge pull request #4346 from matrix-org/jryans/clear-sessionstorage

Clear sessionStorage on sign out
pull/21833/head
J. Ryan Stinnett 2020-04-06 16:51:06 +01:00 committed by GitHub
commit 2b6cbae4a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -637,6 +637,10 @@ async function _clearStorage() {
window.localStorage.clear();
}
if (window.sessionStorage) {
window.sessionStorage.clear();
}
// create a temporary client to clear out the persistent stores.
const cli = createMatrixClient({
// we'll never make any requests, so can pass a bogus HS URL