From 89b4aa5d62237f36fac9dcce9c546005ec18968b Mon Sep 17 00:00:00 2001 From: bitpshr Date: Mon, 1 Oct 2018 20:52:31 -0400 Subject: EIP-1102: Add option to force-enable provider --- old-ui/app/config.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'old-ui/app') diff --git a/old-ui/app/config.js b/old-ui/app/config.js index 999b556c6..15b0294e6 100644 --- a/old-ui/app/config.js +++ b/old-ui/app/config.js @@ -225,6 +225,31 @@ ConfigScreen.prototype.render = function () { h('hr.horizontal-line'), + h('div', { + style: { + marginTop: '20px', + }, + }, [ + h('p', { + style: { + fontFamily: 'Montserrat Light', + fontSize: '13px', + }, + }, 'Expose accounts to the current website. This is useful for legacy dapps.'), + h('br'), + h('button', { + style: { + alignSelf: 'center', + }, + onClick (event) { + event.preventDefault() + state.dispatch(actions.forceInjection()) + }, + }, 'Expose accounts'), + ]), + + h('hr.horizontal-line'), + h('div', { style: { marginTop: '20px', -- cgit v1.2.3