extension
extension copied to clipboard
Using Polkadot JS extension from another extension
Nota : this is a duplicate of the closed #849 issue, as I missed the closing notification emails :(. Very sorry for the extra work, feel free to reopen the first issue or continue in this one.
Hi guys,
At this time, it is not possible to use the Polkadot JS extension from another extension, the content scripts needed from the Polkadot JS extension are not injected in the other extension.
One solution could be the use of the Chrome Cross Extension messaging feature, which allow one extension to exchange messages with another.
For my own needs, I started working on this. You will find the related code (work in progresss) in the following repositories:
- Polkadot Extension : the extension should be opened for external requests.
-
DApp Extension : we exchange messages with the extension instead of using the
extension-dapp
package.
Do you guys think it make sense to implement this feature in the Polkadot JS official extension ? Please let me know if you want to discuss this further :) Thanks for your help.
I can prepare a PR for that feature for the beginning of the next week. @jacogr just let me know if it's ok for you.
This issue has been open for 21 days with no activity and is not labelled as an enhancement. It will be closed in 7 days.
Happy new year ! :tada: The PR #935 is ready for review :rocket:
This issue has been open for 21 days with no activity and is not labelled as an enhancement. It will be closed in 7 days.