From f79b8e0c716d252cac5fe29a61b890b3cd8e831a Mon Sep 17 00:00:00 2001 From: Robert Swain Date: Mon, 25 Sep 2017 17:19:04 +0200 Subject: [PATCH] ElectronPlatform: Import desktopCapturer explicitly --- src/vector/platform/ElectronPlatform.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vector/platform/ElectronPlatform.js b/src/vector/platform/ElectronPlatform.js index 5f6783e7..0f76bf09 100644 --- a/src/vector/platform/ElectronPlatform.js +++ b/src/vector/platform/ElectronPlatform.js @@ -21,7 +21,7 @@ import VectorBasePlatform, {updateCheckStatusEnum} from './VectorBasePlatform'; import dis from 'matrix-react-sdk/lib/dispatcher'; import { _t } from 'matrix-react-sdk/lib/languageHandler'; import Promise from 'bluebird'; -import electron, {remote, ipcRenderer} from 'electron'; +import {remote, ipcRenderer, desktopCapturer} from 'electron'; import rageshake from '../rageshake'; remote.autoUpdater.on('update-downloaded', onUpdateDownloaded); @@ -233,7 +233,7 @@ export default class ElectronPlatform extends VectorBasePlatform { * 150px. */ obtainDesktopStreams(callback, errorCallback, options = {}) { - electron.desktopCapturer.getSources(options, + desktopCapturer.getSources(options, (error, sources) => { if (error) { errorCallback(error);