Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HELP - Can the port stream based provider work in a tab application loaded by the extension? #284

Open
javaspeak opened this issue Sep 30, 2023 · 4 comments

Comments

@javaspeak
Copy link

Can the port stream based provider work in a tab application loaded by the extension?

i.e. when a background script opens a chrome extension app in a tab - can the chrome extension app connect to MetaMask?

I am not talking about content scripts. I am talking about a chrome extension app opening in a new tab.

The reason I wanted to connect to the web browser version of metamask in the tab was so that it is associated with the extension url:

chrome-extension://oahhaapnfpkfnbgeopliehfgenifngde/tab.html#register

and not the url the content script happens to be on.

If it is not possible to connect to Meta Mask in a chrome extension tab app, then is there another way to connect the meta mask browser wallet to a domain url like:

chrome-extension://oahhaapnfpkfnbgeopliehfgenifngde/tab.html#register

I am super struggling finding the answers to this so if anyone can help me I will be super happy.

Thanks for your time.

@javaspeak
Copy link
Author

Anyone?

@mcmire
Copy link
Contributor

mcmire commented Oct 5, 2023

Hi @javaspeak, sorry for the late reply. MetaMask has a "full-screen view" that opens in another tab, and ports work across extension-related views, so it should be possible to do what you say. But if you are having trouble, could you give us more information on what you've tried so we can help you further?

@divinit7
Copy link

Hey, @javaspeak . Any progress on this?

@mcmire
Copy link
Contributor

mcmire commented Jan 8, 2024

@divinit7 Not sure what you mean by "progress" here, but are you having a similar issue?

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

No branches or pull requests

3 participants