Console now has admin (#4220)

Fixes #4210
This commit is contained in:
Gav Wood 2017-01-19 10:24:34 +01:00 committed by GitHub
parent f9509cc8b8
commit 0826bf75d1
2 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,7 @@
// TODO: Fix linting issues // TODO: Fix linting issues
if (typeof(window.parity) == 'object') if (typeof(window.parity) == 'object')
window.api = window.parent.secureApi;
window.parity.api.subscribe('eth_blockNumber', function (error, blockNumber) { window.parity.api.subscribe('eth_blockNumber', function (error, blockNumber) {
if (error) { if (error) {
console.log('error', error); console.log('error', error);

View File

@ -81,6 +81,7 @@
"description": "A Javascript development console complete with web3 and parity objects.", "description": "A Javascript development console complete with web3 and parity objects.",
"version": "0.3", "version": "0.3",
"author": "Gav Wood <gavin@ethcore.io>", "author": "Gav Wood <gavin@ethcore.io>",
"visible": true "visible": true,
"secure": true
} }
] ]