mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-03 19:53:57 +00:00
don't clear localStorage in case of crash
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
'Sorry, DbGate has crashed again.\nDo you want to clear local user data to avoid crashing after next reload?'
|
'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 {
|
try {
|
||||||
await localforage.clear();
|
await localforage.clear();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user