diff options
| author | AAGaming <aagaming@riseup.net> | 2023-12-30 21:32:23 -0500 |
|---|---|---|
| committer | AAGaming <aagaming@riseup.net> | 2023-12-30 21:32:23 -0500 |
| commit | 40c7c1b515abf4abcecd6480afb28f27fb71d0f0 (patch) | |
| tree | 576399085651b6e7cb0c37876ed6c2b3d0452dd7 /frontend/src/store.tsx | |
| parent | 70104065e2145e9a04fef4ae28ec9875a6114e2d (diff) | |
| download | decky-loader-40c7c1b515abf4abcecd6480afb28f27fb71d0f0.tar.gz decky-loader-40c7c1b515abf4abcecd6480afb28f27fb71d0f0.zip | |
port updater to ws, also small refactoring
Diffstat (limited to 'frontend/src/store.tsx')
| -rw-r--r-- | frontend/src/store.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/store.tsx b/frontend/src/store.tsx index 5ae98ec4..3fcfdb2f 100644 --- a/frontend/src/store.tsx +++ b/frontend/src/store.tsx @@ -37,7 +37,7 @@ export async function getStore(): Promise<Store> { } export async function getPluginList(): Promise<StorePlugin[]> { - let version = await window.DeckyPluginLoader.updateVersion(); + let version = await DeckyPluginLoader.updateVersion(); let store = await getSetting<Store | null>('store', null); let customURL = await getSetting<string>('store-url', 'https://plugins.deckbrew.xyz/plugins'); let storeURL; @@ -112,7 +112,7 @@ export async function requestMultiplePluginInstalls(requests: PluginInstallReque ); } -export async function checkForUpdates(plugins: Plugin[]): Promise<PluginUpdateMapping> { +export async function checkForPluginUpdates(plugins: Plugin[]): Promise<PluginUpdateMapping> { const serverData = await getPluginList(); const updateMap = new Map<string, StorePluginVersion>(); for (let plugin of plugins) { |
