dee9aef975
* Make it possible to disable a module for a renderer * Put DesktopCapturer API under a build flag The name is "enable_desktop_capturer". Enabled by default.
15 lines
529 B
JavaScript
15 lines
529 B
JavaScript
const features = process.atomBinding('features')
|
|
|
|
// Renderer side modules, please sort alphabetically.
|
|
// A module is `enabled` if there is no explicit condition defined.
|
|
module.exports = [
|
|
{
|
|
name: 'desktopCapturer',
|
|
file: 'desktop-capturer',
|
|
enabled: features.isDesktopCapturerEnabled()
|
|
},
|
|
{name: 'ipcRenderer', file: 'ipc-renderer', enabled: true},
|
|
{name: 'remote', file: 'remote', enabled: true},
|
|
{name: 'screen', file: 'screen', enabled: true},
|
|
{name: 'webFrame', file: 'web-frame', enabled: true}
|
|
]
|