aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@users.noreply.github.com>2018-07-25 02:49:50 +0800
committerGitHub <noreply@github.com>2018-07-25 02:49:50 +0800
commitfed9ae0deed5853014cfc76b4314195d477f14f4 (patch)
treeef81d610e330241215b0b5878adbf3e5d74c8771 /app
parent653e42cf79f20e57af63f2bcc36cb3c236239e9b (diff)
parenta61227f224e37559c8d6e2c59441b0032633feaf (diff)
downloadtangerine-wallet-browser-fed9ae0deed5853014cfc76b4314195d477f14f4.tar.gz
tangerine-wallet-browser-fed9ae0deed5853014cfc76b4314195d477f14f4.tar.zst
tangerine-wallet-browser-fed9ae0deed5853014cfc76b4314195d477f14f4.zip
Merge pull request #4865 from MetaMask/i4829-close-notifications-from-ui
Close notifications from UI actions
Diffstat (limited to 'app')
-rw-r--r--app/scripts/platforms/extension.js6
-rw-r--r--app/scripts/ui.js1
2 files changed, 6 insertions, 1 deletions
diff --git a/app/scripts/platforms/extension.js b/app/scripts/platforms/extension.js
index 901c26cab..0803164e8 100644
--- a/app/scripts/platforms/extension.js
+++ b/app/scripts/platforms/extension.js
@@ -14,6 +14,12 @@ class ExtensionPlatform {
extension.tabs.create({ url })
}
+ closeCurrentWindow () {
+ return extension.windows.getCurrent((windowDetails) => {
+ return extension.windows.remove(windowDetails.id)
+ })
+ }
+
getVersion () {
return extension.runtime.getManifest().version
}
diff --git a/app/scripts/ui.js b/app/scripts/ui.js
index 9bf97be87..da100f928 100644
--- a/app/scripts/ui.js
+++ b/app/scripts/ui.js
@@ -64,7 +64,6 @@ async function start () {
css = betaUIState ? NewMetaMaskUiCss() : OldMetaMaskUiCss()
deleteInjectedCss = injectCss(css)
}
- if (state.appState.shouldClose) notificationManager.closePopup()
})
})