diff --git a/lib/browser/rpc-server.js b/lib/browser/rpc-server.js index c67e7efb93d..38dc0b8711f 100644 --- a/lib/browser/rpc-server.js +++ b/lib/browser/rpc-server.js @@ -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