mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
handle app crash
This commit is contained in:
parent
11436c065c
commit
3f8ff91e2c
@ -18,13 +18,11 @@ window.onunhandledrejection = async e => {
|
|||||||
console.error('Error clearing app data', err);
|
console.error('Error clearing app data', err);
|
||||||
}
|
}
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
} else {
|
}
|
||||||
|
} else {
|
||||||
|
if (window.confirm('Sorry, DbGate has crashed.\nPress OK for reload application')) {
|
||||||
localStorage.setItem('lastDbGateCrash', JSON.stringify(new Date().getTime()));
|
localStorage.setItem('lastDbGateCrash', JSON.stringify(new Date().getTime()));
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
window.alert('Sorry, DbGate has crashed.\nAfter OK DbGate will be reloaded');
|
|
||||||
localStorage.setItem('lastDbGateCrash', JSON.stringify(new Date().getTime()));
|
|
||||||
window.location.reload();
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user