Add a global mxSendSentryReport so we can debug sentry from the console (#7042)
This commit is contained in:
parent
6a3fb5cbb4
commit
8170697bbf
2 changed files with 3 additions and 0 deletions
1
src/@types/global.d.ts
vendored
1
src/@types/global.d.ts
vendored
|
@ -99,6 +99,7 @@ declare global {
|
||||||
mxSkinner?: Skinner;
|
mxSkinner?: Skinner;
|
||||||
mxOnRecaptchaLoaded?: () => void;
|
mxOnRecaptchaLoaded?: () => void;
|
||||||
electron?: Electron;
|
electron?: Electron;
|
||||||
|
mxSendSentryReport: (userText: string, issueUrl: string, error: Error) => Promise<void>;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface DesktopCapturerSource {
|
interface DesktopCapturerSource {
|
||||||
|
|
|
@ -219,3 +219,5 @@ export async function initSentry(sentryConfig: ISentryConfig): Promise<void> {
|
||||||
tracesSampleRate: 1.0,
|
tracesSampleRate: 1.0,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
window.mxSendSentryReport = sendSentryReport;
|
||||||
|
|
Loading…
Reference in a new issue