Skip to content

Migrate away from injecting API #465

@limemloh

Description

@limemloh

The current behavior of the browser extension is to inject a script on every website that the user visits. This effectively slow down every site the user visits, but also means the user grants access for the extension to inject and modify every site they visit, which is a lot to ask.
To my knowledge, the only point of the injected script is to expose the API of the browser wallet to sites like dApps.

I suggest the wallet instead expose this API using the chrome extension API for message passing, provide a 1-to-1 API for dapp developers in a library and then deprecate the injected script.

Removing the injected script would be a breaking change, so the dapps will need some time to migrate to the library first.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions