summaryrefslogtreecommitdiff
path: root/frontend/src/plugin-loader.tsx
diff options
context:
space:
mode:
authorAAGaming <aa@mail.catvibers.me>2022-09-18 11:07:30 -0400
committerAAGaming <aa@mail.catvibers.me>2022-09-18 11:07:30 -0400
commit62bd3e76bdf7fb4c2b7fda6ee7d9605d19032dcc (patch)
treecdb015ca022c00eabf391479e5eaba79cfa32013 /frontend/src/plugin-loader.tsx
parent9867d7bea0fca194e3cc44c4c446fa4b06a45650 (diff)
downloaddecky-loader-62bd3e76bdf7fb4c2b7fda6ee7d9605d19032dcc.tar.gz
decky-loader-62bd3e76bdf7fb4c2b7fda6ee7d9605d19032dcc.zip
small changes making breakpoint debugging easier
Diffstat (limited to 'frontend/src/plugin-loader.tsx')
-rw-r--r--frontend/src/plugin-loader.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/frontend/src/plugin-loader.tsx b/frontend/src/plugin-loader.tsx
index a17969a7..b6df5a1f 100644
--- a/frontend/src/plugin-loader.tsx
+++ b/frontend/src/plugin-loader.tsx
@@ -43,7 +43,7 @@ class PluginLoader extends Logger {
super(PluginLoader.name);
this.log('Initialized');
- const TabIcon = () => {
+ const TabBadge = () => {
const { updates, hasLoaderUpdate } = useDeckyState();
return <NotificationBadge show={(updates && updates.size > 0) || hasLoaderUpdate} />;
};
@@ -60,7 +60,7 @@ class PluginLoader extends Logger {
icon: (
<DeckyStateContextProvider deckyState={this.deckyState}>
<FaPlug />
- <TabIcon />
+ <TabBadge />
</DeckyStateContextProvider>
),
});
@@ -216,7 +216,8 @@ class PluginLoader extends Logger {
},
});
if (res.ok) {
- let plugin = await eval(await res.text())(this.createPluginAPI(name));
+ let plugin_export = await eval(await res.text());
+ let plugin = plugin_export(this.createPluginAPI(name));
this.plugins.push({
...plugin,
name: name,