don't clear localStorage in case of crash

This commit is contained in:
Jan Prochazka
2021-09-28 10:13:22 +02:00
parent 3b15d315ec
commit 8910a6bd07

View File

@@ -22,7 +22,7 @@
'Sorry, DbGate has crashed again.\nDo you want to clear local user data to avoid crashing after next reload?'
)
) {
localStorage.clear();
localStorage.removeItem('openedTabs');
try {
await localforage.clear();
} catch (err) {