Improve telemetry

This commit is contained in:
Peter Maquiran
2024-08-05 11:12:51 +01:00
parent bf6c4dbbd8
commit 035cb9a6c0
13 changed files with 627 additions and 30 deletions
+4
View File
@@ -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);
}