aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/scripts/lib/notification-manager.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/scripts/lib/notification-manager.js b/app/scripts/lib/notification-manager.js
index 5dfb42078..4a5d21e2f 100644
--- a/app/scripts/lib/notification-manager.js
+++ b/app/scripts/lib/notification-manager.js
@@ -28,6 +28,7 @@ class NotificationManager {
} else {
// create new notification popup
extension.windows.create({
+ id: 'metamask-popup',
url: 'notification.html',
type: 'popup',
width,
@@ -93,7 +94,7 @@ class NotificationManager {
_getPopupIn (windows) {
return windows ? windows.find((win) => {
// Returns notification popup
- return (win && win.type === 'popup')
+ return (win && win.type === 'popup' && win.id === 'metamask-popup')
}) : null
}