electron/lib/browser/ipc-main-internal.js

13 lines
229 B
JavaScript
Raw Normal View History

'use strict'
const { EventEmitter } = require('events')
const emitter = new EventEmitter()
// Do not throw exception when channel name is "error".
emitter.on('error', () => {})
module.exports = {
ipcMainInternal: emitter
}