this is what i get for commiting to main 😔
This commit is contained in:
Party Wumpus
2023-10-17 13:52:11 +01:00
committed by marios8543
parent 2cdb49168c
commit a2312256b3
+2 -2
View File
@@ -44,7 +44,7 @@ export async function getPluginList(): Promise<StorePlugin[]> {
if (store === null) { if (store === null) {
console.log('Could not get store, using Default.'); console.log('Could not get store, using Default.');
await setSetting('store', Store.Default); await setSetting('store', Store.Default);
store = Store.Default store = Store.Default;
} }
switch (+store) { switch (+store) {
case Store.Default: case Store.Default:
@@ -60,6 +60,7 @@ export async function getPluginList(): Promise<StorePlugin[]> {
console.error('Somehow you ended up without a standard URL, using the default URL.'); 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/plugins';
break; break;
}
return fetch(storeURL, { return fetch(storeURL, {
method: 'GET', method: 'GET',
headers: { headers: {
@@ -67,7 +68,6 @@ export async function getPluginList(): Promise<StorePlugin[]> {
}, },
}).then((r) => r.json()); }).then((r) => r.json());
} }
}
export async function installFromURL(url: string) { export async function installFromURL(url: string) {
const splitURL = url.split('/'); const splitURL = url.split('/');