Skip to content

Commit

Permalink
change custom url so the /plugins is not included
Browse files Browse the repository at this point in the history
  • Loading branch information
PartyWumpus committed Oct 17, 2023
1 parent dccabfb commit d723e88
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions frontend/src/store.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export async function getStore(): Promise<Store> {

export async function getPluginList(): Promise<StorePlugin[]> {
let version = await window.DeckyPluginLoader.updateVersion();
let store = await getSetting<Store>('store', null);
let customURL = await getSetting<string>('store-url', 'https://plugins.deckbrew.xyz/plugins');
let store = await getSetting<Store | null>('store', null);
let customURL = await getSetting<string>('store-url', 'https://plugins.deckbrew.xyz');
let storeURL;
if (store === null) {
console.log('Could not get store, using Default.');
Expand All @@ -48,20 +48,20 @@ export async function getPluginList(): Promise<StorePlugin[]> {
}
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,
Expand Down

0 comments on commit d723e88

Please sign in to comment.