mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-08 22:53:22 +03:00
Ensure plugins are loaded for client route
This commit is contained in:
parent
9e2789aa4b
commit
9d9a37330c
@ -17,6 +17,11 @@ export class PluginPagesComponent implements AfterViewInit {
|
||||
}
|
||||
|
||||
ngAfterViewInit () {
|
||||
this.pluginService.ensurePluginsAreLoaded('common')
|
||||
.then(() => this.loadRoute())
|
||||
}
|
||||
|
||||
private loadRoute () {
|
||||
const path = '/' + this.route.snapshot.url.map(u => u.path).join('/')
|
||||
|
||||
const registered = this.pluginService.getRegisteredClientRoute(path)
|
||||
|
Loading…
Reference in New Issue
Block a user