L I N T I N G P T I I

This commit is contained in:
Charlie Hess 2017-01-06 14:18:14 -08:00 committed by Kevin Sawicki
parent 49c6446267
commit 41ea169784

View file

@ -155,14 +155,16 @@ const rendererMissingErrorMessage = function (meta, args, callIntoRenderer) {
const eventsAttached = args[0].sender._events
const remoteEvents = Object.keys(eventsAttached).filter((eventName) => {
return Array.isArray(eventsAttached[eventName]) ?
eventsAttached[eventName].includes(callIntoRenderer) :
eventsAttached[eventName] === callIntoRenderer
return Array.isArray(eventsAttached[eventName])
? eventsAttached[eventName].includes(callIntoRenderer)
: eventsAttached[eventName] === callIntoRenderer
})
if (remoteEvents && remoteEvents.length > 0) {
message += `\nRemote event names:`
remoteEvents.forEach((eventName) => message += ` ${eventName} `)
remoteEvents.forEach((eventName) => {
message += ` ${eventName} `
})
}
return message