From documentation I expected that these two functions act the same. Only expected difference was callRenderer
sending to specific window and sendToRenderers
sending to BrowserWindow.getAllWindows()
.
After digging deeper I found that sendToRenderers
does not use the same channel formatting as the other method, so it is impossible to handle incoming messages using ipcRenderer.answerMain
.
I have two possible solutions:
ipcRenderer
to handle unchanged channel.sendToRenderers
for every window.@sindresorhus which one would you prefer?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too