diff options
author | Thomas Huang <thomas.b.huang@gmail.com> | 2019-03-01 03:58:37 +0800 |
---|---|---|
committer | Thomas Huang <thomas.b.huang@gmail.com> | 2019-03-01 03:58:37 +0800 |
commit | 5a8221253e3555370c6ad5431def5320463a6839 (patch) | |
tree | 3a27b8ce18661f097ce72ccc6b4a87fd8d2c230c | |
parent | 973042bafac23e5e938ec0faee0e5861aa41abab (diff) | |
download | tangerine-wallet-browser-5a8221253e3555370c6ad5431def5320463a6839.tar tangerine-wallet-browser-5a8221253e3555370c6ad5431def5320463a6839.tar.gz tangerine-wallet-browser-5a8221253e3555370c6ad5431def5320463a6839.tar.bz2 tangerine-wallet-browser-5a8221253e3555370c6ad5431def5320463a6839.tar.lz tangerine-wallet-browser-5a8221253e3555370c6ad5431def5320463a6839.tar.xz tangerine-wallet-browser-5a8221253e3555370c6ad5431def5320463a6839.tar.zst tangerine-wallet-browser-5a8221253e3555370c6ad5431def5320463a6839.zip |
Improvement
-rw-r--r-- | app/scripts/background.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js index 3423aa984..099406c70 100644 --- a/app/scripts/background.js +++ b/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 } |