diff options
| author | TrainDoctor <traindoctor@protonmail.com> | 2022-10-22 16:52:18 -0700 |
|---|---|---|
| committer | TrainDoctor <traindoctor@protonmail.com> | 2022-10-22 16:52:48 -0700 |
| commit | c546a818f116d3344da1a9c866555036fcb9a7cc (patch) | |
| tree | e5404ab5e30d97774b490e68eeddceac8b8d43fc /frontend/src | |
| parent | 0226bd2bf876b9172572c7d6aaf1d2f7d0928687 (diff) | |
| download | decky-loader-c546a818f116d3344da1a9c866555036fcb9a7cc.tar.gz decky-loader-c546a818f116d3344da1a9c866555036fcb9a7cc.zip | |
Send version when asking for plugin list
Diffstat (limited to 'frontend/src')
| -rw-r--r-- | frontend/src/store.tsx | 6 |
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()); } |
