Skip to content

Conversation

@iamEvanYT
Copy link
Contributor

@iamEvanYT iamEvanYT commented Apr 20, 2025

Bug

Error: Attempted to register a second handler for 'xxx'

This is because it is trying to register the IPC twice as I initialised it on two different sessions.

Solution

A handledIpcChannels map to only handle each IPC channel once, and route the requests to the right ChromeWebStore instance.


closes #117

✅ By sending this pull request, I agree to the Contributor License Agreement of this project.

@Kilian
Copy link
Contributor

Kilian commented Apr 20, 2025

There are a few downstream effects of the bug that I mentioned here: #117 that might be worth looking into as well.

@iamEvanYT
Copy link
Contributor Author

iamEvanYT commented Apr 20, 2025

There are a few downstream effects of the bug that I mentioned here: #117 that might be worth looking into as well.

Oh, that’s why my extensions were slightly glitching out 😂

I’ll see if i can make a fix for those too. Thanks!

Copy link
Owner

@samuelmaddock samuelmaddock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks!

@samuelmaddock samuelmaddock merged commit b2fcbce into samuelmaddock:master Apr 23, 2025
2 checks passed
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.

[electron-chrome-web-store] support for multiple sessions

3 participants