Skip to content

Commit

Permalink
Merge branch 'release/1.11.2' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphiiko committed Dec 22, 2023
2 parents 24837e6 + 0decc56 commit 551e00e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [1.11.2]

### Added

- Crash reporting for Rust panics
- Crash reporting for Rust panics and JS errors in main UI.

### Changed

Expand Down
12 changes: 12 additions & 0 deletions src-ui/app/services/telemetry.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,18 @@ export class TelemetryService {
} else {
debug('[Telemetry] Disabling telemetry in dev mode');
}

addEventListener('unhandledrejection', (e) => {
this.trackEvent('ui_promise_rejected', {
message: (e.reason?.message || e.reason || e).toString(),
});
});

window.addEventListener('error', (e) => {
this.trackEvent('ui_js_error', {
message: e.message,
});
});
}

async loadSettings() {
Expand Down

0 comments on commit 551e00e

Please sign in to comment.