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:
parent
451c05bcbb
commit
317c3084df
@ -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 })
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user