refactor: replace ipcRendererUtils.invoke() with ipcRendererInternal.invoke() (#19574)
This commit is contained in:
parent
698120daf0
commit
81e9dab52f
29 changed files with 195 additions and 164 deletions
|
@ -1,8 +1,6 @@
|
|||
import { EventEmitter } from 'events'
|
||||
import { IpcMainImpl } from '@electron/internal/browser/ipc-main-impl'
|
||||
|
||||
const emitter = new EventEmitter()
|
||||
export const ipcMainInternal = new IpcMainImpl() as ElectronInternal.IpcMainInternal
|
||||
|
||||
// Do not throw exception when channel name is "error".
|
||||
emitter.on('error', () => {})
|
||||
|
||||
export const ipcMainInternal = emitter as ElectronInternal.IpcMainInternal
|
||||
ipcMainInternal.on('error', () => {})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue