refactor: Port web-frame-init to TypeScript (#16934)
* refactor: Port web-frame-init to TypeScript * refactor: Use ipcRendererInternal
This commit is contained in:
parent
6b3ff4f1f7
commit
596acdcb91
5 changed files with 43 additions and 28 deletions
|
@ -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`).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue