mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-25 00:11:43 +02:00
Merge pull request #4346 from matrix-org/jryans/clear-sessionstorage
Clear sessionStorage on sign out
This commit is contained in:
commit
2b6cbae4a7
@ -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…
x
Reference in New Issue
Block a user