1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Merge pull request #6183 from chikeichan/5171

Bring Popup to front when ui is tiggered
This commit is contained in:
Dan J Miller 2019-02-19 20:59:02 -03:30 committed by GitHub
commit 641f7c8f4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -448,7 +448,7 @@ function setupController (initState, initLangCode) {
function triggerUi () {
extension.tabs.query({ active: true }, tabs => {
const currentlyActiveMetamaskTab = Boolean(tabs.find(tab => openMetamaskTabsIDs[tab.id]))
if (!popupIsOpen && !currentlyActiveMetamaskTab && !notificationIsOpen) {
if ((!popupIsOpen || !notificationIsOpen) && !currentlyActiveMetamaskTab) {
notificationManager.showPopup()
notificationIsOpen = true
}