Skip to content
This repository was archived by the owner on Sep 9, 2021. It is now read-only.

Conversation

@danjm
Copy link
Contributor

@danjm danjm commented Oct 31, 2019

This PR adds to #31 to take advantage of the support for custom html in prompts added with MetaMask/metamask-snaps-beta#86

Code such as <div style="width: 100%;overflow-wrap: break-word;"> The site from <span style="font-weight: 900;color: #037DD6;"><a href="${origin}">${origin}</a></span> requests you sign this with your offline strategy:\n${JSON.stringify(req)} </div>

can be passed to the prompt method to generate a prompt in metamask that looks like:

Screenshot from 2019-10-31 16-44-34

@rekmarks rekmarks closed this Apr 24, 2021
@rekmarks rekmarks deleted the CustomIdentityExample-with-custom-prompt branch April 24, 2021 21:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants