Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

How can I send&receive messages from a new created window? #13

Open
zgayjjf opened this issue Dec 7, 2021 · 0 comments
Open

How can I send&receive messages from a new created window? #13

zgayjjf opened this issue Dec 7, 2021 · 0 comments

Comments

@zgayjjf
Copy link

zgayjjf commented Dec 7, 2021

I'm using crx-bridge in a new project.

However, I can't receive a response when I use sendMessage in a window opened by the code below.

browser.windows.create({
  focused: true,
  url: `notification.html`,
  type: 'popup',
})

It is the same even if I called allowWindowMessaging in content-script and setNamespace in the created window.

Did I miss something?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant