diff options
fix merge conflicts
Diffstat (limited to 'app/scripts/platforms/extension.js')
-rw-r--r-- | app/scripts/platforms/extension.js | 6 |
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 } |