From 4c1b526137379969d16386f50ca3214d90c67c3f Mon Sep 17 00:00:00 2001 From: vittominacori Date: Sat, 16 Jun 2018 18:51:01 +0200 Subject: [PATCH] set an id to the metamask notification popup --- app/scripts/lib/notification-manager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }