diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-09-06 02:44:26 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-09-06 02:44:26 +0800 |
commit | 90272e252fa265037ecdfb3f618aa1a8e16ee4fb (patch) | |
tree | 86d3231c8feef93a23c62b0fd18cca098f320033 /ui | |
parent | 2885a9547187ce1ad0fb3bed1935387d901942a8 (diff) | |
download | tangerine-wallet-browser-90272e252fa265037ecdfb3f618aa1a8e16ee4fb.tar tangerine-wallet-browser-90272e252fa265037ecdfb3f618aa1a8e16ee4fb.tar.gz tangerine-wallet-browser-90272e252fa265037ecdfb3f618aa1a8e16ee4fb.tar.bz2 tangerine-wallet-browser-90272e252fa265037ecdfb3f618aa1a8e16ee4fb.tar.lz tangerine-wallet-browser-90272e252fa265037ecdfb3f618aa1a8e16ee4fb.tar.xz tangerine-wallet-browser-90272e252fa265037ecdfb3f618aa1a8e16ee4fb.tar.zst tangerine-wallet-browser-90272e252fa265037ecdfb3f618aa1a8e16ee4fb.zip |
Make eth_sign deprecation warning more useful
Link to descriptive article that demonstrates the new preferred method.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/components/pending-msg.js | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/ui/app/components/pending-msg.js b/ui/app/components/pending-msg.js index b7133cda8..834719c53 100644 --- a/ui/app/components/pending-msg.js +++ b/ui/app/components/pending-msg.js @@ -35,10 +35,21 @@ PendingMsg.prototype.render = function () { style: { margin: '10px', }, - }, `Signing this message can have + }, [ + `Signing this message can have dangerous side effects. Only sign messages from sites you fully trust with your entire account. - This dangerous method will be removed in a future version.`), + This dangerous method will be removed in a future version. `, + h('a', { + href: 'https://medium.com/metamask/the-new-secure-way-to-sign-data-in-your-browser-6af9dd2a1527', + style: { color: 'rgb(247, 134, 28)' }, + onClick: (event) => { + event.preventDefault() + const url = 'https://medium.com/metamask/the-new-secure-way-to-sign-data-in-your-browser-6af9dd2a1527' + global.platform.openWindow({ url }) + }, + }, 'Read more here.'), + ]), // message details h(PendingTxDetails, state), |