Add a global mxSendSentryReport so we can debug sentry from the console (#7042)

This commit is contained in:
James Salter 2021-10-27 14:05:58 +01:00 committed by GitHub
parent 6a3fb5cbb4
commit 8170697bbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -99,6 +99,7 @@ declare global {
mxSkinner?: Skinner;
mxOnRecaptchaLoaded?: () => void;
electron?: Electron;
mxSendSentryReport: (userText: string, issueUrl: string, error: Error) => Promise<void>;
}
interface DesktopCapturerSource {

View file

@ -219,3 +219,5 @@ export async function initSentry(sentryConfig: ISentryConfig): Promise<void> {
tracesSampleRate: 1.0,
});
}
window.mxSendSentryReport = sendSentryReport;