Bring Popup to front when ui is tiggered

feature/default_network_editable
Chi Kei Chan 6 years ago
parent 89c4353408
commit d9039f5292
  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 && !currentlyActiveMetamaskTab && !notificationIsOpen) {
if ((!popupIsOpen || !notificationIsOpen) && !currentlyActiveMetamaskTab) {
notificationManager.showPopup()
notificationIsOpen = true
}

Loading…
Cancel
Save