aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorThomas Huang <thomas.b.huang@gmail.com>2019-03-05 07:47:07 +0800
committerThomas Huang <thomas.b.huang@gmail.com>2019-03-05 07:47:48 +0800
commit8e99a537ca979789edf00f7e47f78c06af12df3b (patch)
tree6571b7e13c6c9a0b60c5dbead1e7557bb613a38a /app
parent5a8221253e3555370c6ad5431def5320463a6839 (diff)
downloadtangerine-wallet-browser-8e99a537ca979789edf00f7e47f78c06af12df3b.tar
tangerine-wallet-browser-8e99a537ca979789edf00f7e47f78c06af12df3b.tar.gz
tangerine-wallet-browser-8e99a537ca979789edf00f7e47f78c06af12df3b.tar.bz2
tangerine-wallet-browser-8e99a537ca979789edf00f7e47f78c06af12df3b.tar.lz
tangerine-wallet-browser-8e99a537ca979789edf00f7e47f78c06af12df3b.tar.xz
tangerine-wallet-browser-8e99a537ca979789edf00f7e47f78c06af12df3b.tar.zst
tangerine-wallet-browser-8e99a537ca979789edf00f7e47f78c06af12df3b.zip
Simplify
Diffstat (limited to 'app')
-rw-r--r--app/scripts/background.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js
index 099406c70..189858a1d 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 && !currentlyActiveMetamaskTab) {
notificationManager.showPopup()
notificationIsOpen = true
}