mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 12:16:53 +02:00
Add a global mxSendSentryReport so we can debug sentry from the console (#7042)
This commit is contained in:
parent
6a3fb5cbb4
commit
8170697bbf
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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user