refactor: simplify isRemoteModuleEnabled handling in sandboxed renderers (#15961)

This commit is contained in:
Milan Burda 2018-12-05 19:07:56 +01:00 committed by Shelley Vohr
parent ab2a061b59
commit 764a10f7c7
3 changed files with 13 additions and 25 deletions

View file

@ -22,8 +22,8 @@ module.exports = [
},
{
name: 'remote',
configurable: true, // will be configured in init.js
load: () => require('@electron/internal/renderer/api/remote')
load: () => require('@electron/internal/renderer/api/remote'),
enabled: process.isRemoteModuleEnabled
},
{
name: 'webFrame',