refactor: Port web-frame-init to TypeScript (#16934)

* refactor: Port web-frame-init to TypeScript

* refactor: Use ipcRendererInternal
This commit is contained in:
Felix Rieseberg 2019-02-17 16:24:18 -08:00 committed by Charles Kerr
parent 6b3ff4f1f7
commit 596acdcb91
5 changed files with 43 additions and 28 deletions

View file

@ -61,7 +61,8 @@ ipcNative.onExit = function () {
process.emit('exit')
}
require('@electron/internal/renderer/web-frame-init')()
const { webFrameInit } = require('@electron/internal/renderer/web-frame-init')
webFrameInit()
// Pass different process object to the preload script(which should not have
// access to things like `process.atomBinding`).