sindresorhus / electron-better-ipc

Simplified IPC communication for Electron apps
MIT License
715 stars 60 forks source link

Fix problem with multiple `callMain` calls #41

Closed t13m closed 3 years ago

t13m commented 3 years ago

Fixes #35 . This patch replace the calls to ipc.on and ipc.off with calls to prototypes of ipc object, so that the callback will be added to the right place and then handled properly.