From be0e3d9555984f23635498f0c8c204ae894db2d9 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Wed, 15 Nov 2017 09:44:20 -0300 Subject: [PATCH] Expose desktopCapturer in sandbox mode. --- lib/sandboxed_renderer/api/exports/electron.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/sandboxed_renderer/api/exports/electron.js b/lib/sandboxed_renderer/api/exports/electron.js index 209bd7f73996..5256e356c8b3 100644 --- a/lib/sandboxed_renderer/api/exports/electron.js +++ b/lib/sandboxed_renderer/api/exports/electron.js @@ -32,5 +32,15 @@ Object.defineProperties(exports, { get: function () { return require('../../../common/api/is-promise') } + }, + desktopCapturer: { + get: function () { + return require('../../../renderer/api/desktop-capturer') + } + }, + nativeImage: { + get: function () { + return require('../../../common/api/native-image') + } } })