aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/platforms/extension.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-12-09 08:48:08 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-12-13 04:14:40 +0800
commit05c6789030791bd1b46434cf89c1817db37e8f38 (patch)
tree5f3eeb57e416322bd6d0b427e31e531d62e1589f /app/scripts/platforms/extension.js
parent800eb2b96913684efa29ae049802b9567a825fd3 (diff)
downloadtangerine-wallet-browser-05c6789030791bd1b46434cf89c1817db37e8f38.tar
tangerine-wallet-browser-05c6789030791bd1b46434cf89c1817db37e8f38.tar.gz
tangerine-wallet-browser-05c6789030791bd1b46434cf89c1817db37e8f38.tar.bz2
tangerine-wallet-browser-05c6789030791bd1b46434cf89c1817db37e8f38.tar.lz
tangerine-wallet-browser-05c6789030791bd1b46434cf89c1817db37e8f38.tar.xz
tangerine-wallet-browser-05c6789030791bd1b46434cf89c1817db37e8f38.tar.zst
tangerine-wallet-browser-05c6789030791bd1b46434cf89c1817db37e8f38.zip
Adds button for opening app in main browser window in extension.
Diffstat (limited to 'app/scripts/platforms/extension.js')
-rw-r--r--app/scripts/platforms/extension.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/scripts/platforms/extension.js b/app/scripts/platforms/extension.js
index 2f47512eb..f5cc255d1 100644
--- a/app/scripts/platforms/extension.js
+++ b/app/scripts/platforms/extension.js
@@ -17,6 +17,11 @@ class ExtensionPlatform {
return extension.runtime.getManifest().version
}
+ openExtensionInBrowser () {
+ const extensionURL = extension.runtime.getURL('home.html')
+ this.openWindow({ url: extensionURL })
+ }
+
getPlatformInfo (cb) {
try {
extension.runtime.getPlatformInfo((platform) => {