From d7aff45ff295da5a515bc0edfaa9935d66934168 Mon Sep 17 00:00:00 2001 From: Gav Date: Thu, 19 Jan 2017 09:41:15 +0100 Subject: [PATCH] Console now has admin Fixes #4210 --- js/src/dapps/static/console.js | 1 + js/src/views/Dapps/builtin.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/js/src/dapps/static/console.js b/js/src/dapps/static/console.js index 41f00aef65b..01d60e77a2c 100755 --- a/js/src/dapps/static/console.js +++ b/js/src/dapps/static/console.js @@ -18,6 +18,7 @@ // TODO: Fix linting issues if (typeof(window.parity) == 'object') + window.api = window.parent.secureApi; window.parity.api.subscribe('eth_blockNumber', function (error, blockNumber) { if (error) { console.log('error', error); diff --git a/js/src/views/Dapps/builtin.json b/js/src/views/Dapps/builtin.json index 5572af81919..3af8feeb378 100644 --- a/js/src/views/Dapps/builtin.json +++ b/js/src/views/Dapps/builtin.json @@ -81,6 +81,7 @@ "description": "A Javascript development console complete with web3 and parity objects.", "version": "0.3", "author": "Gav Wood ", - "visible": true + "visible": true, + "secure": true } ]