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:
eXhumer
2024-12-13 20:32:50 -07:00
committed by GitHub
parent 6bf21bf2ad
commit 25036b065f

View File

@@ -68,27 +68,6 @@ export async function getPluginList(
await setSetting('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) {
case Store.Default:
storeURL = 'https://plugins.deckbrew.xyz/plugins';