mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
Improve telemetry
This commit is contained in:
@@ -104,3 +104,7 @@ window.addEventListener('unhandledrejection', function(event) {
|
||||
const { reason } = event;
|
||||
captureError(reason.message || 'Unhandled rejection', 'Unknown source', 'Unknown line', 'Unknown column', reason);
|
||||
});
|
||||
window.onerror = function(message, source, lineno, colno, error) {
|
||||
if (error) message = error.stack;
|
||||
console.log('send', 'event', 'window.onerror', message, navigator.userAgent);
|
||||
}
|
||||
Reference in New Issue
Block a user