summaryrefslogtreecommitdiff
path: root/frontend/src
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src')
-rw-r--r--frontend/src/plugin-loader.tsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/frontend/src/plugin-loader.tsx b/frontend/src/plugin-loader.tsx
index eb3344a3..c42065c7 100644
--- a/frontend/src/plugin-loader.tsx
+++ b/frontend/src/plugin-loader.tsx
@@ -111,11 +111,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 content = await eval(await res.text())(this.createPluginAPI(name));
+ let { name: _, content } = await eval(await res.text())(this.createPluginAPI(name));
this.plugins.push({
name: name,
- icon: content.icon,
- content: content.content,
+ ...content,
});
} else throw new Error(`${name} frontend_bundle not OK`);
}