1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

allow to open specific route in fullscreen mode

This commit is contained in:
brunobar79 2018-07-02 15:14:31 -04:00
parent 451c05bcbb
commit 317c3084df

View File

@ -17,8 +17,11 @@ class ExtensionPlatform {
return extension.runtime.getManifest().version return extension.runtime.getManifest().version
} }
openExtensionInBrowser () { openExtensionInBrowser (route = null) {
const extensionURL = extension.runtime.getURL('home.html') let extensionURL = extension.runtime.getURL('home.html')
if (route) {
extensionURL += `#${route}`
}
this.openWindow({ url: extensionURL }) this.openWindow({ url: extensionURL })
} }