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 8a51f968b..1ae579664 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -325,6 +325,7 @@ App.prototype.renderPrimary = function () {
return h(SendTransactionScreen, {key: 'send-transaction'})
case 'confTx':
+ this.clearNotifications()
return h(ConfirmTxScreen, {key: 'confirm-tx'})
case 'config':
@@ -356,3 +357,10 @@ App.prototype.toggleMetamaskActive = function () {
}
}
+App.prototype.clearNotifications = function () {
+ chrome.notifications.getAll( function (object) {
+ for (let notification in object){
+ chrome.notifications.clear(notification)
+ }
+ })
+};