diff --git a/src/@types/global.d.ts b/src/@types/global.d.ts index 38f237b9c3..a9d8e9547f 100644 --- a/src/@types/global.d.ts +++ b/src/@types/global.d.ts @@ -99,6 +99,7 @@ declare global { mxSkinner?: Skinner; mxOnRecaptchaLoaded?: () => void; electron?: Electron; + mxSendSentryReport: (userText: string, issueUrl: string, error: Error) => Promise; } interface DesktopCapturerSource { diff --git a/src/sentry.ts b/src/sentry.ts index cfb0da324a..88abada17a 100644 --- a/src/sentry.ts +++ b/src/sentry.ts @@ -219,3 +219,5 @@ export async function initSentry(sentryConfig: ISentryConfig): Promise { tracesSampleRate: 1.0, }); } + +window.mxSendSentryReport = sendSentryReport;