mirror of
https://github.com/vector-im/element-web.git
synced 2025-11-02 17:21:25 +01:00
Add a bit of debugging for clear cache & reload button
This commit is contained in:
parent
173a8543a7
commit
4136e0722d
@ -71,6 +71,9 @@ export default class HelpUserSettingsTab extends React.Component {
|
||||
_onClearCacheAndReload = (e) => {
|
||||
if (!PlatformPeg.get()) return;
|
||||
|
||||
// Dev note: please keep this log line, it's useful when troubleshooting a MatrixClient suddenly
|
||||
// stopping in the middle of the logs.
|
||||
console.log("Clear cache & reload clicked");
|
||||
MatrixClientPeg.get().stopClient();
|
||||
MatrixClientPeg.get().store.deleteAllData().done(() => {
|
||||
PlatformPeg.get().reload();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user