mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-24 22:16:00 +00:00
handle app crash
This commit is contained in:
@@ -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();
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user