Skip to content

The message port closed before a response was received #29

Description

@Garito

Hi!
I get this error:

Uncaught (in promise) Error: The message port closed before a response was received.
at chrome-extension-async.js:46

trying to send a message to background.js like:

await chrome.runtime.sendMessage({ action: 'toggleIcon', value: dots });

Can someone help figuring out what is the reason or how to use this feature properly?

Thanks

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions