Show popup if notification or activeMMtab is true but not if popup is open

feature/default_network_editable
Thomas Huang 6 years ago
parent cb2698d20e
commit 973042bafa
  1. 2
      app/scripts/background.js

@ -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 || notificationIsOpen || currentlyActiveMetamaskTab) {
notificationManager.showPopup()
notificationIsOpen = true
}

Loading…
Cancel
Save