mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-17 08:47:49 +00:00
small changes making breakpoint debugging easier
This commit is contained in:
@@ -43,7 +43,7 @@ class PluginLoader extends Logger {
|
|||||||
super(PluginLoader.name);
|
super(PluginLoader.name);
|
||||||
this.log('Initialized');
|
this.log('Initialized');
|
||||||
|
|
||||||
const TabIcon = () => {
|
const TabBadge = () => {
|
||||||
const { updates, hasLoaderUpdate } = useDeckyState();
|
const { updates, hasLoaderUpdate } = useDeckyState();
|
||||||
return <NotificationBadge show={(updates && updates.size > 0) || hasLoaderUpdate} />;
|
return <NotificationBadge show={(updates && updates.size > 0) || hasLoaderUpdate} />;
|
||||||
};
|
};
|
||||||
@@ -60,7 +60,7 @@ class PluginLoader extends Logger {
|
|||||||
icon: (
|
icon: (
|
||||||
<DeckyStateContextProvider deckyState={this.deckyState}>
|
<DeckyStateContextProvider deckyState={this.deckyState}>
|
||||||
<FaPlug />
|
<FaPlug />
|
||||||
<TabIcon />
|
<TabBadge />
|
||||||
</DeckyStateContextProvider>
|
</DeckyStateContextProvider>
|
||||||
),
|
),
|
||||||
});
|
});
|
||||||
@@ -216,7 +216,8 @@ class PluginLoader extends Logger {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
if (res.ok) {
|
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({
|
this.plugins.push({
|
||||||
...plugin,
|
...plugin,
|
||||||
name: name,
|
name: name,
|
||||||
|
|||||||
Reference in New Issue
Block a user