Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
SupertigerDev committed Oct 27, 2024
1 parent db3a5bf commit 59cc518
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/Electron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ interface WindowAPI {

setNotification(value: boolean): void;
getDesktopCaptureSources(): Promise<ElectronCaptureSource[]>;
setDesktopCaptureSourceId(sourceId: string): void;
setDesktopCaptureSourceId(sourceId: string): Promise<true>;

getRunningPrograms(ignoredPrograms?: Program[]): Promise<Program[]>;
restartActivityStatus(listenToPrograms: Program[]): void;
Expand Down
2 changes: 1 addition & 1 deletion src/components/main-pane-header/ScreenShareModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function ScreenShareModal(props: { close: () => void }) {

if (electronWindowAPI()?.isElectron) {
const sourceId = electronSourceIdRef();
electronWindowAPI()?.setDesktopCaptureSourceId(sourceId);
await electronWindowAPI()?.setDesktopCaptureSourceId(sourceId);
}

const stream = await navigator.mediaDevices
Expand Down

0 comments on commit 59cc518

Please sign in to comment.