aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrunobar79 <brunobar79@gmail.com>2018-07-03 03:14:31 +0800
committerbrunobar79 <brunobar79@gmail.com>2018-07-03 03:14:31 +0800
commit317c3084df9d81d372c3326aa8db1e1e6f0255e3 (patch)
treeecb019b99097651d7d2519bee6d109ddf01dc13a
parent451c05bcbb2a9612cf242caa52c034c0056807c8 (diff)
downloadtangerine-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.js7
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 })
}