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

11 lines
206 B
JavaScript
Raw Normal View History

'use strict'
const { EventEmitter } = require('events')
2016-01-12 02:40:23 +00:00
2016-12-01 22:43:30 +00:00
const emitter = new EventEmitter()
// Do not throw exception when channel name is "error".
2016-12-01 22:43:30 +00:00
emitter.on('error', () => {})
module.exports = emitter