fix setup
This commit is contained in:
@@ -190,7 +190,11 @@ export class FrontblockAdmin extends ConfigLoader<AdminConf>{
|
||||
response.status(200)
|
||||
response.set('Content-Type', 'application/javascript')
|
||||
response.send(frontend)
|
||||
})
|
||||
})
|
||||
|
||||
this.express.get("*", (req, res) => {
|
||||
res.status(301).redirect("/")
|
||||
})
|
||||
|
||||
this.httpServer = new http.Server(this.express)
|
||||
this.httpServer.listen(port, () => {
|
||||
|
||||
@@ -81,9 +81,9 @@ window['setup'] = async() => {
|
||||
await Promise.all([
|
||||
fb.PluginManager.installPlugin("ApiClient"),
|
||||
fb.PluginManager.installPlugin("HtmlSupplier"),
|
||||
fb.PluginManager.installPlugin("PluginManager"),
|
||||
fb.PluginManager.installPlugin("PaymentManager"),
|
||||
fb.PluginManager.installPlugin("BTCWallet"),
|
||||
])
|
||||
await fb.PluginManager.installPlugin("PluginManager"),
|
||||
location.reload();
|
||||
}
|
||||
Reference in New Issue
Block a user