mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
set an id to the metamask notification popup
This commit is contained in:
parent
299abee666
commit
4c1b526137
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user