fix: ensure that internal messages are sent from the main process (#26429)
This commit is contained in:
parent
83d30c5c2a
commit
5ee9cc202b
6 changed files with 34 additions and 9 deletions
|
@ -302,7 +302,7 @@ function metaToError (meta: { type: 'error', value: any, members: ObjectMember[]
|
|||
}
|
||||
|
||||
function handleMessage (channel: string, handler: Function) {
|
||||
ipcRendererInternal.on(channel, (event, passedContextId, id, ...args) => {
|
||||
ipcRendererInternal.onMessageFromMain(channel, (event, passedContextId, id, ...args) => {
|
||||
if (passedContextId === contextId) {
|
||||
handler(id, ...args);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue