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 {
|
} else {
|
||||||
// create new notification popup
|
// create new notification popup
|
||||||
extension.windows.create({
|
extension.windows.create({
|
||||||
|
id: 'metamask-popup',
|
||||||
url: 'notification.html',
|
url: 'notification.html',
|
||||||
type: 'popup',
|
type: 'popup',
|
||||||
width,
|
width,
|
||||||
@ -93,7 +94,7 @@ class NotificationManager {
|
|||||||
_getPopupIn (windows) {
|
_getPopupIn (windows) {
|
||||||
return windows ? windows.find((win) => {
|
return windows ? windows.find((win) => {
|
||||||
// Returns notification popup
|
// Returns notification popup
|
||||||
return (win && win.type === 'popup')
|
return (win && win.type === 'popup' && win.id === 'metamask-popup')
|
||||||
}) : null
|
}) : null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user