electron/lib/sandboxed_renderer/api/exports/electron.js

20 lines
320 B
JavaScript
Raw Normal View History

'use strict'
const moduleList = require('@electron/internal/sandboxed_renderer/api/module-list')
for (const {
2018-09-13 16:10:51 +00:00
name,
load,
enabled = true,
private: isPrivate = false
} of moduleList) {
if (!enabled) {
continue
}
Object.defineProperty(exports, name, {
enumerable: !isPrivate,
get: load
})
}