feat: MessagePorts in the main process (#22404)
This commit is contained in:
parent
c4c0888972
commit
b4d07f76d3
34 changed files with 1316 additions and 113 deletions
|
@ -29,4 +29,8 @@ ipcRenderer.invoke = async function (channel, ...args) {
|
|||
return result
|
||||
}
|
||||
|
||||
ipcRenderer.postMessage = function (channel: string, message: any, transferables: any) {
|
||||
return ipc.postMessage(channel, message, transferables)
|
||||
}
|
||||
|
||||
export default ipcRenderer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue