2019-02-14 14:29:20 -08:00
|
|
|
import { EventEmitter } from 'events'
|
2016-01-11 18:40:23 -08:00
|
|
|
|
2016-12-01 14:43:30 -08:00
|
|
|
const emitter = new EventEmitter()
|
2016-07-24 21:08:25 +09:00
|
|
|
|
|
|
|
// Do not throw exception when channel name is "error".
|
2016-12-01 14:43:30 -08:00
|
|
|
emitter.on('error', () => {})
|
|
|
|
|
2019-02-19 09:24:19 +00:00
|
|
|
export const ipcMainInternal = emitter as ElectronInternal.IpcMainInternal
|