-
-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
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:
- Exposing additional function in
ipcRenderer
to handle unchanged channel. - Formatting channel in
sendToRenderers
for every window.
@sindresorhus which one would you prefer?
Metadata
Metadata
Assignees
Labels
No labels