mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Remove unused NotificationManager#closePopup (#8530)
This commit is contained in:
parent
3d0ffc50f8
commit
ceb5970afd
@ -63,18 +63,6 @@ export default class NotificationManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Closes a MetaMask notification if it window exists.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
async closePopup () {
|
|
||||||
const popup = this._getPopup()
|
|
||||||
if (!popup) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
await this.platform.removeWindow(popup.id)
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks all open MetaMask windows, and returns the first one it finds that is a notification window (i.e. has the
|
* Checks all open MetaMask windows, and returns the first one it finds that is a notification window (i.e. has the
|
||||||
* type 'popup')
|
* type 'popup')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user