aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/app.js')
-rw-r--r--ui/app/app.js8
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)
+ }
+ })
+};