mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Bring Popup to front when ui is tiggered
This commit is contained in:
parent
89c4353408
commit
d9039f5292
@ -448,7 +448,7 @@ function setupController (initState, initLangCode) {
|
|||||||
function triggerUi () {
|
function triggerUi () {
|
||||||
extension.tabs.query({ active: true }, tabs => {
|
extension.tabs.query({ active: true }, tabs => {
|
||||||
const currentlyActiveMetamaskTab = Boolean(tabs.find(tab => openMetamaskTabsIDs[tab.id]))
|
const currentlyActiveMetamaskTab = Boolean(tabs.find(tab => openMetamaskTabsIDs[tab.id]))
|
||||||
if (!popupIsOpen && !currentlyActiveMetamaskTab && !notificationIsOpen) {
|
if ((!popupIsOpen || !notificationIsOpen) && !currentlyActiveMetamaskTab) {
|
||||||
notificationManager.showPopup()
|
notificationManager.showPopup()
|
||||||
notificationIsOpen = true
|
notificationIsOpen = true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user