Skip to content

Commit 313ca03

Browse files
committed
fix(App): Fix screen not being shared after selecting source
1 parent 3117c9e commit 313ca03

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/webview/desktopCapturer.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ function getDisplayMedia() {
2424
width: 600,
2525
});
2626

27-
if (overlayAction === 'closed') {
28-
reject(new Error('Source selection canceled'));
29-
}
27+
setTimeout(() => {
28+
if (overlayAction === 'closed') {
29+
reject(new Error('Source selection canceled'));
30+
}
31+
}, 250);
3032
});
3133
}
3234

0 commit comments

Comments
 (0)