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

This commit is contained in:
James Salter
2021-10-27 13:05:58 +00:00
committed by GitHub
parent 6a3fb5cbb4
commit 8170697bbf
2 changed files with 3 additions and 0 deletions
+1
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 {
+2
View File
@@ -219,3 +219,5 @@ export async function initSentry(sentryConfig: ISentryConfig): Promise<void> {
tracesSampleRate: 1.0,
});
}
window.mxSendSentryReport = sendSentryReport;