From 35f7184b8e80db7dd4dc6d6f3d326b022c81f7b8 Mon Sep 17 00:00:00 2001 From: Alexey Prokhorov Date: Sun, 10 Mar 2024 22:09:45 +0500 Subject: [PATCH] fix(ipc): Message duplicated in dev console, fixes #407 --- src/node/transports/ipc.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/node/transports/ipc.js b/src/node/transports/ipc.js index fb9dac9..fe21d9b 100644 --- a/src/node/transports/ipc.js +++ b/src/node/transports/ipc.js @@ -21,6 +21,10 @@ function ipcTransportFactory(logger, { externalApi }) { return externalApi?.isElectron() ? transport : undefined; function transport(message) { + if (message?.variables?.processType === 'renderer') { + return; + } + externalApi?.sendIpc(transport.eventId, { ...message, data: transform({ logger, message, transport }),