Skip to content

Commit

Permalink
fix(ipc): Message duplicated in dev console, fixes #407
Browse files Browse the repository at this point in the history
  • Loading branch information
megahertz committed Mar 10, 2024
1 parent feaf2f3 commit 35f7184
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/node/transports/ipc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }),
Expand Down

0 comments on commit 35f7184

Please sign in to comment.