mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 19:11:58 +00:00
chore: remove dead / double code (#726)
* noticed by @KP2048 in https://discord.com/channels/960281551428522045/960284311444131840/1317031315551420447 Signed-off-by: eXhumer <exhumer@exhumer.cc>
This commit is contained in:
@@ -68,27 +68,6 @@ export async function getPluginList(
|
|||||||
await setSetting('store', Store.Default);
|
await setSetting('store', Store.Default);
|
||||||
store = Store.Default;
|
store = Store.Default;
|
||||||
}
|
}
|
||||||
switch (+store) {
|
|
||||||
case Store.Default:
|
|
||||||
storeURL = 'https://plugins.deckbrew.xyz/plugins';
|
|
||||||
break;
|
|
||||||
case Store.Testing:
|
|
||||||
storeURL = 'https://testing.deckbrew.xyz/plugins';
|
|
||||||
break;
|
|
||||||
case Store.Custom:
|
|
||||||
storeURL = customURL;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
console.error('Somehow you ended up without a standard URL, using the default URL.');
|
|
||||||
storeURL = 'https://plugins.deckbrew.xyz/plugins';
|
|
||||||
break;
|
|
||||||
return fetch(storeURL, {
|
|
||||||
method: 'GET',
|
|
||||||
headers: {
|
|
||||||
'X-Decky-Version': version.current,
|
|
||||||
},
|
|
||||||
}).then((r) => r.json());
|
|
||||||
}
|
|
||||||
switch (+store) {
|
switch (+store) {
|
||||||
case Store.Default:
|
case Store.Default:
|
||||||
storeURL = 'https://plugins.deckbrew.xyz/plugins';
|
storeURL = 'https://plugins.deckbrew.xyz/plugins';
|
||||||
|
|||||||
Reference in New Issue
Block a user