diff options
author | Alexander Tseung <alextsg@users.noreply.github.com> | 2018-07-25 02:49:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-25 02:49:50 +0800 |
commit | fed9ae0deed5853014cfc76b4314195d477f14f4 (patch) | |
tree | ef81d610e330241215b0b5878adbf3e5d74c8771 /app | |
parent | 653e42cf79f20e57af63f2bcc36cb3c236239e9b (diff) | |
parent | a61227f224e37559c8d6e2c59441b0032633feaf (diff) | |
download | tangerine-wallet-browser-fed9ae0deed5853014cfc76b4314195d477f14f4.tar tangerine-wallet-browser-fed9ae0deed5853014cfc76b4314195d477f14f4.tar.gz tangerine-wallet-browser-fed9ae0deed5853014cfc76b4314195d477f14f4.tar.bz2 tangerine-wallet-browser-fed9ae0deed5853014cfc76b4314195d477f14f4.tar.lz tangerine-wallet-browser-fed9ae0deed5853014cfc76b4314195d477f14f4.tar.xz 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.js | 6 | ||||
-rw-r--r-- | app/scripts/ui.js | 1 |
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() }) }) |