feat: make ipc-message
and ipc-message-sync
events public (#16468)
This commit is contained in:
parent
dbc5f67dca
commit
6cba2c50a2
7 changed files with 82 additions and 26 deletions
|
@ -235,6 +235,12 @@ app.on('ready', function () {
|
|||
})
|
||||
})
|
||||
|
||||
ipcMain.on('handle-next-ipc-message-sync', function (event, returnValue) {
|
||||
event.sender.once('ipc-message-sync', (event, channel, args) => {
|
||||
event.returnValue = returnValue
|
||||
})
|
||||
})
|
||||
|
||||
for (const eventName of [
|
||||
'remote-require',
|
||||
'remote-get-global',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue