fix
This commit is contained in:
@@ -20,6 +20,8 @@ export default class PluginManagerPlugin extends PluginManager implements Plugin
|
||||
|
||||
constructor(){
|
||||
super()
|
||||
|
||||
this.loadedPlugins[this.name] = {backend: this, frontend: this.loadFrontend(this.name)}
|
||||
}
|
||||
|
||||
exportRPCs(): import("frontblock-generic/Plugin").socketioRPC[] {
|
||||
@@ -75,12 +77,22 @@ export default class PluginManagerPlugin extends PluginManager implements Plugin
|
||||
visibility: "private",
|
||||
rpc: async(conf) => { return this.updateConfig(conf) },
|
||||
type: 'call'
|
||||
},{
|
||||
name: "extractPlugin",
|
||||
visibility: "private",
|
||||
rpc: async(conf) => { return this.extractPlugin(conf) },
|
||||
type: 'call'
|
||||
},{
|
||||
name: "downloadPlugin",
|
||||
visibility: "private",
|
||||
rpc: async(conf) => { return this.downloadPlugin(conf) },
|
||||
type: 'call'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
async start(): Promise<void> {
|
||||
await this.loadPlugin("admin")
|
||||
|
||||
}
|
||||
|
||||
stop(): void {
|
||||
|
||||
Reference in New Issue
Block a user