diff options
author | Chi Kei Chan <chikeichan@gmail.com> | 2019-02-19 12:34:29 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2019-02-19 12:34:29 +0800 |
commit | d9039f5292074f093ecd37b818f3640b328c926e (patch) | |
tree | f7128939501fef0ceb6fb63cd92a7a1ab8fbe0c8 /app/scripts | |
parent | 89c43534082b920f68503eddc1dd3cc8f16aeb17 (diff) | |
download | tangerine-wallet-browser-d9039f5292074f093ecd37b818f3640b328c926e.tar.gz tangerine-wallet-browser-d9039f5292074f093ecd37b818f3640b328c926e.tar.zst tangerine-wallet-browser-d9039f5292074f093ecd37b818f3640b328c926e.zip |
Bring Popup to front when ui is tiggered
Diffstat (limited to 'app/scripts')
-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 8cc60be80..026823712 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 && !currentlyActiveMetamaskTab && !notificationIsOpen) { + if ((!popupIsOpen || !notificationIsOpen) && !currentlyActiveMetamaskTab) { notificationManager.showPopup() notificationIsOpen = true } |