diff options
Diffstat (limited to 'app/scripts/background.js')
-rw-r--r-- | app/scripts/background.js | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js index 854b679da..f476e89e4 100644 --- a/app/scripts/background.js +++ b/app/scripts/background.js @@ -115,18 +115,11 @@ function updateBadge () { // txManger :: tx approvals and rejection cb's txManager.on('signed', function (txId) { - var approvalCb = this._unconfTxCbs[txId] - - approvalCb(null, true) - // clean up - delete this._unconfTxCbs[txId] + this.execOnTxDoneCb(txId, true) }) txManager.on('rejected', function (txId) { - var approvalCb = this._unconfTxCbs[txId] - approvalCb(null, false) - // clean up - delete this._unconfTxCbs[txId] + this.execOnTxDoneCb(txId, false) }) // data :: setters/getters |