Clear sessionStorage on sign out
The browser's `sessionStorage` is only used for composer history today, but still we should also clear this on sign out for those on shared computers, etc. Fixes https://github.com/vector-im/riot-web/issues/13041
This commit is contained in:
parent
0e1341c498
commit
a0d54bd43a
1 changed files with 4 additions and 0 deletions
|
@ -637,6 +637,10 @@ async function _clearStorage() {
|
||||||
window.localStorage.clear();
|
window.localStorage.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (window.sessionStorage) {
|
||||||
|
window.sessionStorage.clear();
|
||||||
|
}
|
||||||
|
|
||||||
// create a temporary client to clear out the persistent stores.
|
// create a temporary client to clear out the persistent stores.
|
||||||
const cli = createMatrixClient({
|
const cli = createMatrixClient({
|
||||||
// we'll never make any requests, so can pass a bogus HS URL
|
// we'll never make any requests, so can pass a bogus HS URL
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue