feat: emit process 'loaded' event in sandboxed renderers (#17680)
This commit is contained in:
parent
127b87c713
commit
77d59e99b6
4 changed files with 25 additions and 4 deletions
4
spec/fixtures/module/preload-sandbox.js
vendored
4
spec/fixtures/module/preload-sandbox.js
vendored
|
@ -13,6 +13,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
process.once('loaded', () => {
|
||||
ipcRenderer.send('process-loaded')
|
||||
})
|
||||
|
||||
if (location.protocol === 'file:') {
|
||||
window.test = 'preload'
|
||||
window.process = process
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue