Small FE improvements
This commit is contained in:
parent
c62ec9b98b
commit
f2326b846e
1 changed files with 39 additions and 11 deletions
|
|
@ -24,11 +24,13 @@ export const setUpTelemetry = (): (() => void) => {
|
|||
}
|
||||
});
|
||||
};
|
||||
|
||||
window.addEventListener("error", onError);
|
||||
|
||||
const onUnhandledRejection = (event: PromiseRejectionEvent): void => {
|
||||
Sentry.captureException(event.reason);
|
||||
};
|
||||
|
||||
window.addEventListener("unhandledrejection", onUnhandledRejection);
|
||||
|
||||
return (): void => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue