Replace tabs hook, fix panels, bump lib

This commit is contained in:
AAGaming
2022-06-20 23:37:52 -04:00
parent 39f6a7688d
commit e7c44ee202
4 changed files with 80 additions and 15 deletions
+2 -2
View File
@@ -117,10 +117,10 @@ class PluginLoader extends Logger {
private async importReactPlugin(name: string) {
let res = await fetch(`http://127.0.0.1:1337/plugins/${name}/frontend_bundle`);
if (res.ok) {
let { name: _, content } = await eval(await res.text())(this.createPluginAPI(name));
let plugin = await eval(await res.text())(this.createPluginAPI(name));
this.plugins.push({
name: name,
...content,
...plugin,
});
} else throw new Error(`${name} frontend_bundle not OK`);
}