diff options
author | Dan <danjm.com@gmail.com> | 2017-12-09 08:48:08 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-12-13 04:14:40 +0800 |
commit | 05c6789030791bd1b46434cf89c1817db37e8f38 (patch) | |
tree | 5f3eeb57e416322bd6d0b427e31e531d62e1589f /app | |
parent | 800eb2b96913684efa29ae049802b9567a825fd3 (diff) | |
download | tangerine-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')
-rw-r--r-- | app/images/open.svg | 15 | ||||
-rw-r--r-- | app/scripts/platforms/extension.js | 5 |
2 files changed, 20 insertions, 0 deletions
diff --git a/app/images/open.svg b/app/images/open.svg new file mode 100644 index 000000000..2957ce43d --- /dev/null +++ b/app/images/open.svg @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<svg width="28px" height="28px" viewBox="0 0 28 28" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + <!-- Generator: Sketch 47.1 (45422) - http://www.bohemiancoding.com/sketch --> + <title>open</title> + <desc>Created with Sketch.</desc> + <defs></defs> + <g id="Mobile-screens" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> + <g id="MetaMascara-Mobile---structured" transform="translate(-329.000000, -93.000000)"> + <g id="open" transform="translate(330.000000, 94.000000)"> + <path d="M26,13 C26,20.1799 20.1799,26 13,26 C5.8201,26 0,20.1799 0,13 C0,5.8201 5.8201,0 13,0 C20.1799,0 26,5.8201 26,13 Z" id="Stroke-3" stroke="#4A4A4A"></path> + <path d="M6,17 C6,17 7.78735344,10.8360387 13.7616996,10.8360387 L13.7616996,8 L19,12.3733433 L13.7616996,17 L13.7616996,14.1639613 C13.7616996,14.1639613 9.54083576,13.4629933 6,17" id="Fill-5" fill="#4A4A4A"></path> + </g> + </g> + </g> +</svg>
\ No newline at end of file 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) => { |