Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix problem with multiple callMain calls #41

Merged
merged 1 commit into from
Jun 30, 2021

Conversation

t13m
Copy link
Contributor

@t13m t13m commented Jun 30, 2021

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.

@sindresorhus sindresorhus changed the title FIX https://github.com/sindresorhus/electron-better-ipc/issues/35 Fix problem with multiple callMain calls Jun 30, 2021
@sindresorhus sindresorhus merged commit fdda864 into sindresorhus:main Jun 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ipcRenderer.callMain - subsequent calls return non-resolving Promises
2 participants