Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Console now has admin #4220

Merged
merged 1 commit into from
Jan 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions js/src/dapps/static/console.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
// TODO: Fix linting issues

if (typeof(window.parity) == 'object')
window.api = window.parent.secureApi;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We now do have 2 separate instances in here, one via HTTP & one via WS.

Would make sense to have a follow-on where we converge on the secure only. i.e. The next line and friends should be changed to api.subscribe and the parity.js import can be removed.

window.parity.api.subscribe('eth_blockNumber', function (error, blockNumber) {
if (error) {
console.log('error', error);
Expand Down
3 changes: 2 additions & 1 deletion js/src/views/Dapps/builtin.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
"description": "A Javascript development console complete with web3 and parity objects.",
"version": "0.3",
"author": "Gav Wood <gavin@ethcore.io>",
"visible": true
"visible": true,
"secure": true
}
]