Add explanation of account resetting

This commit is contained in:
Dan Finlay 2018-01-31 14:30:58 -08:00
parent 4f61029177
commit 86d56419f4
1 changed files with 20 additions and 0 deletions

View File

@ -150,6 +150,22 @@ ConfigScreen.prototype.render = function () {
marginTop: '20px',
},
}, [
h('p', {
style: {
fontFamily: 'Montserrat Light',
fontSize: '13px',
},
}, [
'Resetting is for developer use only. ',
h('a', {
href: 'http://metamask.helpscoutdocs.com/article/36-resetting-an-account',
target: '_blank',
onClick (event) { this.navigateTo(event.target.href) },
}, 'Read more.'),
]),
h('br'),
h('button', {
style: {
alignSelf: 'center',
@ -237,3 +253,7 @@ function currentProviderDisplay (metamaskState) {
h('span', value),
])
}
ConfigScreen.prototype.navigateTo = function (url) {
global.platform.openWindow({ url })
}