Skip to content

Commit

Permalink
Revert "Focus the notification popup if it's already open (MetaMask#8318
Browse files Browse the repository at this point in the history
)"

This reverts commit e02a022.
  • Loading branch information
wizzfile authored Apr 12, 2020
1 parent e02a022 commit 017c44d
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 @@ -458,7 +458,7 @@ function setupController (initState, initLangCode) {
async function triggerUi () {
const tabs = await platform.getActiveTabs()
const currentlyActiveMetamaskTab = Boolean(tabs.find((tab) => openMetamaskTabsIDs[tab.id]))
if (!popupIsOpen && !currentlyActiveMetamaskTab) {
if (!popupIsOpen && !currentlyActiveMetamaskTab && !notificationIsOpen) {
await notificationManager.showPopup()
}
}
Expand Down

0 comments on commit 017c44d

Please sign in to comment.