L I N T I N G P T I I
This commit is contained in:
parent
49c6446267
commit
41ea169784
1 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue