Add message emit mechanism

This commit is contained in:
marios8543
2023-10-18 14:45:36 +03:00
parent dcee5ca4e4
commit d9ba637cd9
5 changed files with 54 additions and 31 deletions
+7 -7
View File
@@ -44,7 +44,7 @@ export async function getPluginList(): Promise<StorePlugin[]> {
if (store === null) {
console.log('Could not get store, using Default.');
await setSetting('store', Store.Default);
store = Store.Default
store = Store.Default;
}
switch (+store) {
case Store.Default:
@@ -60,12 +60,12 @@ export async function getPluginList(): Promise<StorePlugin[]> {
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());
return fetch(storeURL, {
method: 'GET',
headers: {
'X-Decky-Version': version.current,
},
}).then((r) => r.json());
}
switch (+store) {
case Store.Default: