mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-17 00:37:49 +00:00
port updater to ws, also small refactoring
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
export async function getSetting<T>(key: string, def: T): Promise<T> {
|
||||
const res = await window.DeckyBackend.call<[string, T], T>('utilities/settings/get', key, def);
|
||||
const res = await DeckyBackend.call<[string, T], T>('utilities/settings/get', key, def);
|
||||
return res;
|
||||
}
|
||||
|
||||
export async function setSetting<T>(key: string, value: T): Promise<void> {
|
||||
await window.DeckyBackend.call<[string, T], void>('utilities/settings/set', key, value);
|
||||
await DeckyBackend.call<[string, T], void>('utilities/settings/set', key, value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user