diff options
author | brunobar79 <brunobar79@gmail.com> | 2018-07-03 03:14:31 +0800 |
---|---|---|
committer | brunobar79 <brunobar79@gmail.com> | 2018-07-03 03:14:31 +0800 |
commit | 317c3084df9d81d372c3326aa8db1e1e6f0255e3 (patch) | |
tree | ecb019b99097651d7d2519bee6d109ddf01dc13a | |
parent | 451c05bcbb2a9612cf242caa52c034c0056807c8 (diff) | |
download | tangerine-wallet-browser-317c3084df9d81d372c3326aa8db1e1e6f0255e3.tar tangerine-wallet-browser-317c3084df9d81d372c3326aa8db1e1e6f0255e3.tar.gz tangerine-wallet-browser-317c3084df9d81d372c3326aa8db1e1e6f0255e3.tar.bz2 tangerine-wallet-browser-317c3084df9d81d372c3326aa8db1e1e6f0255e3.tar.lz tangerine-wallet-browser-317c3084df9d81d372c3326aa8db1e1e6f0255e3.tar.xz tangerine-wallet-browser-317c3084df9d81d372c3326aa8db1e1e6f0255e3.tar.zst tangerine-wallet-browser-317c3084df9d81d372c3326aa8db1e1e6f0255e3.zip |
allow to open specific route in fullscreen mode
-rw-r--r-- | app/scripts/platforms/extension.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/scripts/platforms/extension.js b/app/scripts/platforms/extension.js index f5cc255d1..f8dd767dc 100644 --- a/app/scripts/platforms/extension.js +++ b/app/scripts/platforms/extension.js @@ -17,8 +17,11 @@ class ExtensionPlatform { return extension.runtime.getManifest().version } - openExtensionInBrowser () { - const extensionURL = extension.runtime.getURL('home.html') + openExtensionInBrowser (route = null) { + let extensionURL = extension.runtime.getURL('home.html') + if (route) { + extensionURL += `#${route}` + } this.openWindow({ url: extensionURL }) } |