mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
9 lines
241 B
TypeScript
9 lines
241 B
TypeScript
import { EventEmitter } from 'events';
|
|
|
|
const emitter = new EventEmitter();
|
|
|
|
// Do not throw exception when channel name is "error".
|
|
emitter.on('error', () => {});
|
|
|
|
export const ipcMainInternal = emitter as ElectronInternal.IpcMainInternal;
|