aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorvittominacori <vittoriominacori@gmail.com>2018-06-17 00:51:01 +0800
committervittominacori <vittoriominacori@gmail.com>2018-06-17 00:51:01 +0800
commit4c1b526137379969d16386f50ca3214d90c67c3f (patch)
tree3af3931ad70e08902d9c5e0735415e096de370a0 /app/scripts
parent299abee666d7f8347e062afff4f2fae47c7f6968 (diff)
downloadtangerine-wallet-browser-4c1b526137379969d16386f50ca3214d90c67c3f.tar
tangerine-wallet-browser-4c1b526137379969d16386f50ca3214d90c67c3f.tar.gz
tangerine-wallet-browser-4c1b526137379969d16386f50ca3214d90c67c3f.tar.bz2
tangerine-wallet-browser-4c1b526137379969d16386f50ca3214d90c67c3f.tar.lz
tangerine-wallet-browser-4c1b526137379969d16386f50ca3214d90c67c3f.tar.xz
tangerine-wallet-browser-4c1b526137379969d16386f50ca3214d90c67c3f.tar.zst
tangerine-wallet-browser-4c1b526137379969d16386f50ca3214d90c67c3f.zip
set an id to the metamask notification popup
Diffstat (limited to 'app/scripts')
-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
}