diff options
| author | Jonas Dellinger <jonas@dellinger.dev> | 2022-06-20 15:29:40 +0200 |
|---|---|---|
| committer | Jonas Dellinger <jonas@dellinger.dev> | 2022-06-20 15:29:40 +0200 |
| commit | 9a6930571c4e8f6501e6b49cf50ba9525760b507 (patch) | |
| tree | c86f064bf50ccff1595375d77ef684e26d3b3813 | |
| parent | d9dd09c69b94e3a642670c06bfd2417d9f4f4c4a (diff) | |
| download | decky-loader-9a6930571c4e8f6501e6b49cf50ba9525760b507.tar.gz decky-loader-9a6930571c4e8f6501e6b49cf50ba9525760b507.zip | |
Fix onDismount
| -rw-r--r-- | frontend/src/plugin-loader.tsx | 5 |
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`); } |
