From 3b496c362b6bc3a9ffa227851575a7487237f393 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Tue, 5 Jan 2021 19:45:34 +0100 Subject: [PATCH] Don't wait for loaded MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/preload.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/preload.js b/src/preload.js index 3978fac..438093a 100644 --- a/src/preload.js +++ b/src/preload.js @@ -20,6 +20,4 @@ const { ipcRenderer, desktopCapturer } = require('electron'); window.ipcRenderer = ipcRenderer; // expose desktopCapturer to the render process to make screen-sharing work -process.once('loaded', () => { - global.desktopCapturer = desktopCapturer; -}); +global.desktopCapturer = desktopCapturer;