mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 22:31:59 +00:00
Send version when asking for plugin list
This commit is contained in:
@@ -29,9 +29,13 @@ export interface LegacyStorePlugin {
|
|||||||
// name: version
|
// name: version
|
||||||
export type PluginUpdateMapping = Map<string, StorePluginVersion>;
|
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', {
|
return fetch('https://beta.deckbrew.xyz/plugins', {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
|
headers: {
|
||||||
|
'X-Decky-Version': version.current,
|
||||||
|
},
|
||||||
}).then((r) => r.json());
|
}).then((r) => r.json());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user