summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrainDoctor <traindoctor@protonmail.com>2022-10-22 16:52:18 -0700
committerTrainDoctor <traindoctor@protonmail.com>2022-10-22 16:52:48 -0700
commitc546a818f116d3344da1a9c866555036fcb9a7cc (patch)
treee5404ab5e30d97774b490e68eeddceac8b8d43fc
parent0226bd2bf876b9172572c7d6aaf1d2f7d0928687 (diff)
downloaddecky-loader-c546a818f116d3344da1a9c866555036fcb9a7cc.tar.gz
decky-loader-c546a818f116d3344da1a9c866555036fcb9a7cc.zip
Send version when asking for plugin list
-rw-r--r--frontend/src/store.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/frontend/src/store.tsx b/frontend/src/store.tsx
index bdaae6f2..6eba807f 100644
--- a/frontend/src/store.tsx
+++ b/frontend/src/store.tsx
@@ -29,9 +29,13 @@ export interface LegacyStorePlugin {
// name: version
export type PluginUpdateMapping = Map<string, StorePluginVersion>;
-export function getPluginList(): Promise<StorePlugin[]> {
+export async function getPluginList(): Promise<StorePlugin[]> {
+ let version = await window.DeckyPluginLoader.updateVersion();
return fetch('https://beta.deckbrew.xyz/plugins', {
method: 'GET',
+ headers: {
+ 'X-Decky-Version': version.current,
+ },
}).then((r) => r.json());
}