handle plugin load error

This commit is contained in:
Jan Prochazka
2021-04-29 07:38:44 +02:00
parent d171d7d785
commit 00d0c27502
3 changed files with 19 additions and 13 deletions

View File

@@ -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 (