Handle localstorage exceptions.
This commit is contained in:
parent
a6df6ca29b
commit
64042c9de8
2 changed files with 12 additions and 7 deletions
|
@ -72,9 +72,9 @@ module.exports = {
|
|||
logged_in: false,
|
||||
ready: false
|
||||
});
|
||||
localStorage.removeItem("mx_hs_url");
|
||||
localStorage.removeItem("mx_user_id");
|
||||
localStorage.removeItem("mx_access_token");
|
||||
if (window.localStorage) {
|
||||
window.localStorage.clear();
|
||||
}
|
||||
Notifier.stop();
|
||||
MatrixClientPeg.get().removeAllListeners();
|
||||
MatrixClientPeg.replace(null);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue