Skip to content

Commit

Permalink
Merge pull request #6223 from MetaMask/fix-6221
Browse files Browse the repository at this point in the history
Show popup if notification or activeMMtab is true
  • Loading branch information
tmashuang authored Mar 5, 2019
2 parents 8271398 + 8e99a53 commit 1765864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/scripts/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 1765864

Please sign in to comment.