Skip to content

Commit

Permalink
Merge pull request #6279 from MetaMask/notification-window
Browse files Browse the repository at this point in the history
Nonmultiple notifications for batch txs
  • Loading branch information
tmashuang authored Mar 11, 2019
2 parents c44f785 + 43f5fd0 commit 59dbb9b
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 && !currentlyActiveMetamaskTab) {
if (!popupIsOpen && !currentlyActiveMetamaskTab && !notificationIsOpen) {
notificationManager.showPopup()
notificationIsOpen = true
}
Expand Down

0 comments on commit 59dbb9b

Please sign in to comment.