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
1 changed files with 5 additions and 2 deletions

View File

@ -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 })
}