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

Merge pull request #6223 from MetaMask/fix-6221

Show popup if notification or activeMMtab is true
This commit is contained in:
Thomas Huang 2019-03-05 09:14:37 -06:00 committed by GitHub
commit 1765864e40
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 || !notificationIsOpen) && !currentlyActiveMetamaskTab) {
if (!popupIsOpen && !currentlyActiveMetamaskTab) {
notificationManager.showPopup()
notificationIsOpen = true
}