diff options
| author | AAGaming <aagaming@riseup.net> | 2026-10-17 20:10:30 -0400 |
|---|---|---|
| committer | AAGaming <aagaming@riseup.net> | 2026-10-17 20:10:30 -0400 |
| commit | 7611e381a8e3717d3b8a77b299c22042b9c97ea6 (patch) | |
| tree | bfc839383c4f446255be003223c28fa5109a280a /frontend/src | |
| parent | d38bf3478310d2aeddf9d0f62718c8786ef432a9 (diff) | |
| download | decky-loader-7611e381a8e3717d3b8a77b299c22042b9c97ea6.tar.gz decky-loader-7611e381a8e3717d3b8a77b299c22042b9c97ea6.zip | |
make url scheme compatible
Diffstat (limited to 'frontend/src')
| -rw-r--r-- | frontend/src/store.tsx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/frontend/src/store.tsx b/frontend/src/store.tsx index cd880789..55017a66 100644 --- a/frontend/src/store.tsx +++ b/frontend/src/store.tsx @@ -53,7 +53,7 @@ export async function getStore(): Promise<Store> { export async function getStoreBaseURL(): Promise<string> { let store = await getSetting<Store | null>('store', null); - let customURL = await getSetting<string>('store-url', 'https://plugins.deckbrew.xyz'); + let customURL = await getSetting<string>('store-url', 'https://plugins.deckbrew.xyz/plugins'); let storeURL; if (store === null) { console.log('Could not get store, using Default.'); @@ -62,17 +62,17 @@ export async function getStoreBaseURL(): Promise<string> { } switch (+store) { case Store.Default: - storeURL = 'https://plugins.deckbrew.xyz'; + storeURL = 'https://plugins.deckbrew.xyz/plugins'; break; case Store.Testing: - storeURL = 'https://testing.deckbrew.xyz'; + 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'; + storeURL = 'https://plugins.deckbrew.xyz/plugins'; break; } return storeURL; @@ -91,7 +91,7 @@ export async function getPluginList( const storeURL = await getStoreBaseURL(); - return fetch(storeURL + '/plugins' + query, { + return fetch(storeURL + query, { method: 'GET', headers: { 'X-Decky-Version': version.current, |
