Skip to content

Multiple content-script not working #99

Description

@imagents

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🧐 Bug: Needs ConfirmationSomething isn't working, but needs to be confirmed by a team member.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions