Skip to content

Commit d7d463a

Browse files
authored
fix: Screen sharing in Jitsi (#1486)
1 parent 145c04d commit d7d463a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/preload/jitsi.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import url from 'url';
2-
import util from 'util';
32

43
import { desktopCapturer, remote } from 'electron';
54

@@ -8,11 +7,10 @@ import { getSettings } from './rocketChat';
87
const { app } = remote;
98

109

11-
const getScreenSources = util.promisify(desktopCapturer.getSources.bind(desktopCapturer));
1210
const JitsiMeetElectron = {
1311
async obtainDesktopStreams(callback, errorCallback, options = {}) {
1412
try {
15-
callback(await getScreenSources(options));
13+
callback(await desktopCapturer.getSources(options));
1614
} catch (error) {
1715
errorCallback(error);
1816
}

0 commit comments

Comments
 (0)