Add a global mxSendSentryReport so we can debug sentry from the console (#7042)
This commit is contained in:
1
src/@types/global.d.ts
vendored
1
src/@types/global.d.ts
vendored
@@ -99,6 +99,7 @@ declare global {
|
||||
mxSkinner?: Skinner;
|
||||
mxOnRecaptchaLoaded?: () => void;
|
||||
electron?: Electron;
|
||||
mxSendSentryReport: (userText: string, issueUrl: string, error: Error) => Promise<void>;
|
||||
}
|
||||
|
||||
interface DesktopCapturerSource {
|
||||
|
||||
@@ -219,3 +219,5 @@ export async function initSentry(sentryConfig: ISentryConfig): Promise<void> {
|
||||
tracesSampleRate: 1.0,
|
||||
});
|
||||
}
|
||||
|
||||
window.mxSendSentryReport = sendSentryReport;
|
||||
|
||||
Reference in New Issue
Block a user