aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/platforms/extension.js
diff options
context:
space:
mode:
authorDan Miller <danjm.com@gmail.com>2018-07-24 08:50:06 +0800
committerDan Miller <danjm.com@gmail.com>2018-07-24 08:50:06 +0800
commit2359062b62cf65f38b36ccb6bb33fa7d15ada1ae (patch)
tree359b0146502baa8b804171348b01408908a5de14 /app/scripts/platforms/extension.js
parentb208d33b3b27a7f9c7ca2880e8b292d692651343 (diff)
downloadtangerine-wallet-browser-2359062b62cf65f38b36ccb6bb33fa7d15ada1ae.tar
tangerine-wallet-browser-2359062b62cf65f38b36ccb6bb33fa7d15ada1ae.tar.gz
tangerine-wallet-browser-2359062b62cf65f38b36ccb6bb33fa7d15ada1ae.tar.bz2
tangerine-wallet-browser-2359062b62cf65f38b36ccb6bb33fa7d15ada1ae.tar.lz
tangerine-wallet-browser-2359062b62cf65f38b36ccb6bb33fa7d15ada1ae.tar.xz
tangerine-wallet-browser-2359062b62cf65f38b36ccb6bb33fa7d15ada1ae.tar.zst
tangerine-wallet-browser-2359062b62cf65f38b36ccb6bb33fa7d15ada1ae.zip
UI confirm screen closes confirmation window on submit or cancel of a tx
Diffstat (limited to 'app/scripts/platforms/extension.js')
-rw-r--r--app/scripts/platforms/extension.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/scripts/platforms/extension.js b/app/scripts/platforms/extension.js
index 901c26cab..bd4f7bd9f 100644
--- a/app/scripts/platforms/extension.js
+++ b/app/scripts/platforms/extension.js
@@ -14,6 +14,12 @@ class ExtensionPlatform {
extension.tabs.create({ url })
}
+ closeCurrentWindow (cb) {
+ return extension.windows.getCurrent((windowDetails) => {
+ return extension.windows.remove(windowDetails.id)
+ })
+ }
+
getVersion () {
return extension.runtime.getManifest().version
}