Skip to content

Commit f79b8e0

Browse files
committed
ElectronPlatform: Import desktopCapturer explicitly
1 parent 44c0fb7 commit f79b8e0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/vector/platform/ElectronPlatform.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import VectorBasePlatform, {updateCheckStatusEnum} from './VectorBasePlatform';
2121
import dis from 'matrix-react-sdk/lib/dispatcher';
2222
import { _t } from 'matrix-react-sdk/lib/languageHandler';
2323
import Promise from 'bluebird';
24-
import electron, {remote, ipcRenderer} from 'electron';
24+
import {remote, ipcRenderer, desktopCapturer} from 'electron';
2525
import rageshake from '../rageshake';
2626

2727
remote.autoUpdater.on('update-downloaded', onUpdateDownloaded);
@@ -233,7 +233,7 @@ export default class ElectronPlatform extends VectorBasePlatform {
233233
* 150px.
234234
*/
235235
obtainDesktopStreams(callback, errorCallback, options = {}) {
236-
electron.desktopCapturer.getSources(options,
236+
desktopCapturer.getSources(options,
237237
(error, sources) => {
238238
if (error) {
239239
errorCallback(error);

0 commit comments

Comments
 (0)