From d723e88833f88675096b23005affad49f7d14467 Mon Sep 17 00:00:00 2001 From: Party Wumpus <48649272+PartyWumpus@users.noreply.github.com> Date: Tue, 17 Oct 2023 14:55:03 +0000 Subject: [PATCH] change custom url so the /plugins is not included --- frontend/src/store.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/store.tsx b/frontend/src/store.tsx index 846c4766a..a019e8025 100644 --- a/frontend/src/store.tsx +++ b/frontend/src/store.tsx @@ -38,8 +38,8 @@ export async function getStore(): Promise { export async function getPluginList(): Promise { let version = await window.DeckyPluginLoader.updateVersion(); - let store = await getSetting('store', null); - let customURL = await getSetting('store-url', 'https://plugins.deckbrew.xyz/plugins'); + let store = await getSetting('store', null); + let customURL = await getSetting('store-url', 'https://plugins.deckbrew.xyz'); let storeURL; if (store === null) { console.log('Could not get store, using Default.'); @@ -48,20 +48,20 @@ export async function getPluginList(): Promise { } switch (+store) { case Store.Default: - storeURL = 'https://plugins.deckbrew.xyz/plugins'; + storeURL = 'https://plugins.deckbrew.xyz'; break; case Store.Testing: - storeURL = 'https://testing.deckbrew.xyz/plugins'; + storeURL = 'https://testing.deckbrew.xyz'; 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'; + storeURL = 'https://plugins.deckbrew.xyz'; break; } - return fetch(storeURL, { + return fetch(storeURL+"/plugins", { method: 'GET', headers: { 'X-Decky-Version': version.current,