summaryrefslogtreecommitdiffstats
path: root/src/webview
diff options
context:
space:
mode:
Diffstat (limited to 'src/webview')
-rw-r--r--src/webview/screenshare.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/webview/screenshare.ts b/src/webview/screenshare.ts
index dbc23d62c..e631ce52f 100644
--- a/src/webview/screenshare.ts
+++ b/src/webview/screenshare.ts
@@ -1,11 +1,9 @@
1import { desktopCapturer } from 'electron'; 1import { ipcRenderer } from 'electron';
2 2
3const CANCEL_ID = 'desktop-capturer-selection__cancel'; 3const CANCEL_ID = 'desktop-capturer-selection__cancel';
4 4
5export async function getDisplayMediaSelector() { 5export async function getDisplayMediaSelector() {
6 const sources = await desktopCapturer.getSources({ 6 const sources = await ipcRenderer.invoke('get-desktop-capturer-sources');
7 types: ['screen', 'window'],
8 });
9 return `<div class="desktop-capturer-selection__scroller"> 7 return `<div class="desktop-capturer-selection__scroller">
10 <ul class="desktop-capturer-selection__list"> 8 <ul class="desktop-capturer-selection__list">
11 ${sources 9 ${sources