You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you inject multiple content-script into a page with the first one declare onMessage('A) and the second one with no onMessage declaration. When you sendMessage from background. The background will throw an error "No handler registered in 'content-script' to accept messages with A".
However if you switch the first one and second one position in manifest. It works.
Expected Behavior
Both onMessage declared in content-script will work.
Steps To Reproduce
Just create two content-script and inject into the same page
Anything else?
No response
The text was updated successfully, but these errors were encountered:
I face the same problem when using WXT with webext-bridge.
If I define two content scripts and try to message between them, I always get: Error sending xxxxx message: Error: [webext-bridge] No handler registered in 'content-script' to accept messages with id 'xxxxx'
Version
6.0.1
Current Behavior
If you inject multiple content-script into a page with the first one declare onMessage('A) and the second one with no onMessage declaration. When you sendMessage from background. The background will throw an error "No handler registered in 'content-script' to accept messages with A".
However if you switch the first one and second one position in manifest. It works.
Expected Behavior
Both onMessage declared in content-script will work.
Steps To Reproduce
Just create two content-script and inject into the same page
Anything else?
No response
The text was updated successfully, but these errors were encountered: