aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/platforms
diff options
context:
space:
mode:
authorbrunobar79 <brunobar79@gmail.com>2018-07-27 09:04:03 +0800
committerbrunobar79 <brunobar79@gmail.com>2018-07-27 09:04:03 +0800
commit69f4c8c336a0f2fad2027c4a5f76e28a976b5e75 (patch)
treec34647abca3a765d525e222855a7a93f4658f800 /app/scripts/platforms
parentd4a15f22c24074f44daa9eeb4fda192ea3742792 (diff)
parente715d0e6915a9bb0ac69db06144253ddff54ba44 (diff)
downloadtangerine-wallet-browser-69f4c8c336a0f2fad2027c4a5f76e28a976b5e75.tar.gz
tangerine-wallet-browser-69f4c8c336a0f2fad2027c4a5f76e28a976b5e75.tar.zst
tangerine-wallet-browser-69f4c8c336a0f2fad2027c4a5f76e28a976b5e75.zip
fix merge conflicts
Diffstat (limited to 'app/scripts/platforms')
-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 452a51bd8..844670537 100644
--- a/app/scripts/platforms/extension.js
+++ b/app/scripts/platforms/extension.js
@@ -13,6 +13,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
}