aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/notification-manager.js
diff options
context:
space:
mode:
authorJeffrey Tong <trigun0x2@gmail.com>2018-03-08 12:09:40 +0800
committerJeffrey Tong <trigun0x2@gmail.com>2018-03-08 12:09:40 +0800
commitaaef2aeefde39ce11ef07603fd1cb5d2cbb1e294 (patch)
treee93b77feabffb0a938c8bad8fdd2753a1cbff5c9 /app/scripts/lib/notification-manager.js
parent40b1688c67bfb820aca437751dda87df98e9513a (diff)
downloadtangerine-wallet-browser-aaef2aeefde39ce11ef07603fd1cb5d2cbb1e294.tar.gz
tangerine-wallet-browser-aaef2aeefde39ce11ef07603fd1cb5d2cbb1e294.tar.zst
tangerine-wallet-browser-aaef2aeefde39ce11ef07603fd1cb5d2cbb1e294.zip
fixed multiple notification windows when executing batch
Diffstat (limited to 'app/scripts/lib/notification-manager.js')
-rw-r--r--app/scripts/lib/notification-manager.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/scripts/lib/notification-manager.js b/app/scripts/lib/notification-manager.js
index 1283933e1..351f82694 100644
--- a/app/scripts/lib/notification-manager.js
+++ b/app/scripts/lib/notification-manager.js
@@ -9,7 +9,7 @@ class NotificationManager {
// Public
//
- showPopup () {
+ showPopup (cb) {
this._getPopup((err, popup) => {
if (err) throw err
@@ -23,6 +23,9 @@ class NotificationManager {
type: 'popup',
width,
height,
+ }, (win) => {
+ // naming of popup window and a popup in chrome extension sense is confusing
+ cb((win.type == 'popup'));
})
}
})