mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
Merge pull request #13654 from atom/ns-increase-max-listeners
Increase max listener limit on ipcRenderer
This commit is contained in:
commit
3aa773b700
@ -15,6 +15,7 @@ exports.on = function (emitter, eventName, callback) {
|
|||||||
exports.call = function (channel, ...args) {
|
exports.call = function (channel, ...args) {
|
||||||
if (!ipcRenderer) {
|
if (!ipcRenderer) {
|
||||||
ipcRenderer = require('electron').ipcRenderer
|
ipcRenderer = require('electron').ipcRenderer
|
||||||
|
ipcRenderer.setMaxListeners(20)
|
||||||
}
|
}
|
||||||
|
|
||||||
var responseChannel = getResponseChannel(channel)
|
var responseChannel = getResponseChannel(channel)
|
||||||
|
Loading…
Reference in New Issue
Block a user