fix: don't expose desktopCapturer in sandboxed renderers if the feature is disabled (#14310)

This commit is contained in:
Milan Burda 2018-08-27 20:16:52 +02:00 committed by Charles Kerr
parent a43a292d18
commit f1fe485768
4 changed files with 60 additions and 50 deletions

View file

@ -438,8 +438,8 @@ ipcMain.on('ELECTRON_BROWSER_SANDBOX_LOAD', function (event) {
}
}
event.returnValue = {
preloadSrc: preloadSrc,
preloadError: preloadError,
preloadSrc,
preloadError,
process: {
arch: process.arch,
platform: process.platform,