Switch to IPC channel for getDesktopCapturerSources (#7782)

This commit is contained in:
Šimon Brandner
2022-02-11 11:41:15 +01:00
committed by GitHub
parent c3bb8cf3ef
commit 73899bb2e3
4 changed files with 13 additions and 7 deletions

View File

@@ -109,7 +109,7 @@ declare global {
mxActiveWidgetStore?: ActiveWidgetStore;
mxSkinner?: Skinner;
mxOnRecaptchaLoaded?: () => void;
electron?: Electron;
electron?: unknown;
mxSendSentryReport: (userText: string, issueUrl: string, error: Error) => Promise<void>;
mxLoginWithAccessToken: (hsUrl: string, accessToken: string) => Promise<void>;
mxAutoRageshakeStore?: AutoRageshakeStore;
@@ -130,10 +130,6 @@ declare global {
fetchWindowIcons?: boolean;
}
interface Electron {
getDesktopCapturerSources(options: GetSourcesOptions): Promise<Array<DesktopCapturerSource>>;
}
interface Document {
// Safari & IE11 only have this prefixed: we used prefixed versions
// previously so let's continue to support them for now