fix terminal api

pull/3094/head
yann300 7 years ago
parent 089b1a6b88
commit 5332d7acc5
  1. 6
      src/app/panels/terminal.js

@ -136,7 +136,7 @@ class Terminal {
</div>
`
setInterval(() => {
updatePendingTxs(self._api, self._view.pendingTxCount)
updatePendingTxs(self._api.udapp, self._view.pendingTxCount)
}, 5000)
function listenOnNetwork (ev) {
@ -579,8 +579,8 @@ function domTerminalFeatures (self, scopedCommands) {
function blockify (el) { return yo`<div class=${css.block}>${el}</div>` }
// PENDING TX
function updatePendingTxs (api, el) {
var count = Object.keys(api.udapp.pendingTransactions()).length
function updatePendingTxs (udapp, el) {
var count = Object.keys(udapp.pendingTransactions()).length
el.innerText = count
}

Loading…
Cancel
Save