mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 04:26:01 +00:00
handle plugin load error
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
console.log('CRASH DETECTED!!!');
|
||||
const lastDbGateCrashJson = localStorage.getItem('lastDbGateCrash');
|
||||
const lastDbGateCrash = lastDbGateCrashJson ? JSON.parse(lastDbGateCrashJson) : null;
|
||||
// let detail = e?.reason?.stack || '';
|
||||
// if (detail) detail = '\n\n' + detail;
|
||||
|
||||
if (lastDbGateCrash && new Date().getTime() - lastDbGateCrash < 30 * 1000) {
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user