mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-05 06:50:28 +03:00
Add clear cache btn in loading screen
This commit is contained in:
parent
4848bef0dd
commit
c1be57b205
6 changed files with 45 additions and 37 deletions
|
|
@ -147,14 +147,6 @@ class Settings extends EventEmitter {
|
|||
return settings.isNotificationSounds;
|
||||
}
|
||||
|
||||
clearCacheAndReload() {
|
||||
const mx = initMatrix.matrixClient;
|
||||
mx.stopClient()
|
||||
mx.store.deleteAllData().then(() => {
|
||||
window.location.reload();
|
||||
});
|
||||
}
|
||||
|
||||
setter(action) {
|
||||
const actions = {
|
||||
[cons.actions.settings.TOGGLE_SYSTEM_THEME]: () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue