mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Skip popup dismissal in tests
This commit is contained in:
parent
983f3938da
commit
b3887ffd0a
@ -24,6 +24,12 @@ function showNotification() {
|
||||
}
|
||||
|
||||
function getPopup(cb) {
|
||||
|
||||
// Ignore in test environment
|
||||
if (!extension.windows) {
|
||||
return cb(null)
|
||||
}
|
||||
|
||||
extension.windows.getAll({}, (windows) => {
|
||||
let popup = windows.find((win) => {
|
||||
return win.type === 'popup'
|
||||
|
Loading…
Reference in New Issue
Block a user