diff options
author | Frankie <frankie.pangilinan@consensys.net> | 2016-06-29 02:57:33 +0800 |
---|---|---|
committer | Frankie <frankie.pangilinan@consensys.net> | 2016-06-29 02:57:33 +0800 |
commit | 4f4c5048bf386c7d8e93592644bcda99e0fc38ea (patch) | |
tree | 85198d2366375cdf75be8ad7b3d44e4388ea3efc /ui/app | |
parent | 3d9bedaeea9b0485b7cfbe3255d72cfe470bcaa2 (diff) | |
download | tangerine-wallet-browser-4f4c5048bf386c7d8e93592644bcda99e0fc38ea.tar tangerine-wallet-browser-4f4c5048bf386c7d8e93592644bcda99e0fc38ea.tar.gz tangerine-wallet-browser-4f4c5048bf386c7d8e93592644bcda99e0fc38ea.tar.bz2 tangerine-wallet-browser-4f4c5048bf386c7d8e93592644bcda99e0fc38ea.tar.lz tangerine-wallet-browser-4f4c5048bf386c7d8e93592644bcda99e0fc38ea.tar.xz tangerine-wallet-browser-4f4c5048bf386c7d8e93592644bcda99e0fc38ea.tar.zst tangerine-wallet-browser-4f4c5048bf386c7d8e93592644bcda99e0fc38ea.zip |
fix #341 close notifications when oppening pop up
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/app.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/app/app.js b/ui/app/app.js index a07118ddb..f505c89c0 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -324,6 +324,7 @@ App.prototype.renderPrimary = function () { return h(SendTransactionScreen, {key: 'send-transaction'}) case 'confTx': + this.clearNotifications() return h(ConfirmTxScreen, {key: 'confirm-tx'}) case 'config': @@ -355,3 +356,10 @@ App.prototype.toggleMetamaskActive = function () { } } +App.prototype.clearNotifications = function () { + chrome.notifications.getAll( function (object) { + for (let notification in object){ + chrome.notifications.clear(notification) + } + }) +}; |