2018-09-22 12:28:50 +00:00
|
|
|
'use strict'
|
|
|
|
|
2019-03-18 19:37:06 +00:00
|
|
|
const features = process.electronBinding('features')
|
2018-08-27 18:16:52 +00:00
|
|
|
|
|
|
|
module.exports = [
|
|
|
|
{
|
|
|
|
name: 'crashReporter',
|
2018-10-06 11:48:00 +00:00
|
|
|
load: () => require('@electron/internal/renderer/api/crash-reporter')
|
2018-08-27 18:16:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'desktopCapturer',
|
2018-09-20 03:43:26 +00:00
|
|
|
load: () => require('@electron/internal/renderer/api/desktop-capturer'),
|
2018-08-27 18:16:52 +00:00
|
|
|
enabled: features.isDesktopCapturerEnabled()
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'ipcRenderer',
|
2018-10-06 11:48:00 +00:00
|
|
|
load: () => require('@electron/internal/renderer/api/ipc-renderer')
|
2018-08-27 18:16:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'nativeImage',
|
2018-09-20 03:43:26 +00:00
|
|
|
load: () => require('@electron/internal/common/api/native-image')
|
2018-08-27 18:16:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'remote',
|
2018-12-05 18:07:56 +00:00
|
|
|
load: () => require('@electron/internal/renderer/api/remote'),
|
|
|
|
enabled: process.isRemoteModuleEnabled
|
2018-08-27 18:16:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'webFrame',
|
2018-09-20 03:43:26 +00:00
|
|
|
load: () => require('@electron/internal/renderer/api/web-frame')
|
2018-10-13 17:50:07 +00:00
|
|
|
},
|
|
|
|
// The internal modules, invisible unless you know their names.
|
|
|
|
{
|
|
|
|
name: 'deprecate',
|
|
|
|
load: () => require('@electron/internal/common/api/deprecate'),
|
|
|
|
private: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'isPromise',
|
|
|
|
load: () => require('@electron/internal/common/api/is-promise'),
|
|
|
|
private: true
|
2018-08-27 18:16:52 +00:00
|
|
|
}
|
|
|
|
]
|