summaryrefslogtreecommitdiff
path: root/frontend/src/plugin-loader.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/plugin-loader.tsx')
-rw-r--r--frontend/src/plugin-loader.tsx9
1 files changed, 6 insertions, 3 deletions
diff --git a/frontend/src/plugin-loader.tsx b/frontend/src/plugin-loader.tsx
index b16e1bb1..1427cf10 100644
--- a/frontend/src/plugin-loader.tsx
+++ b/frontend/src/plugin-loader.tsx
@@ -755,7 +755,7 @@ class PluginLoader extends Logger {
// Things will break *very* badly if plugin code touches this outside of @decky/api, so lets make that clear.
window.__DECKY_SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_deckyLoaderAPIInit = {
connect: (version: number, pluginName: string) => {
- if (version < 1 || version > 2) {
+ if (version < 1 || version > 3) {
console.warn(`Plugin ${pluginName} requested unsupported api version ${version}.`);
}
@@ -804,6 +804,11 @@ class PluginLoader extends Logger {
backendAPI.useQuickAccessVisible = useQuickAccessVisible;
}
+ if (version >= 3) {
+ backendAPI._version = 3;
+ backendAPI.tabsHook = this.tabsHook;
+ }
+
// Note: version info not available at connection time
this.debug(`Plugin ${pluginName} connected to loader API.`);
return backendAPI;
@@ -829,8 +834,6 @@ class PluginLoader extends Logger {
}
})();
}
- } else {
- this.warn(`event ${event} has no listeners`);
}
};