mirror of
https://github.com/moku-project/Moku.git
synced 2026-06-13 09:19:56 -05:00
Fix: App Pin & Downloads (Filesystem Changes)
This commit is contained in:
@@ -40,7 +40,11 @@ export class TauriAdapter implements PlatformAdapter {
|
||||
|
||||
async loadStore(key: string): Promise<unknown> {
|
||||
try {
|
||||
return await invoke<unknown>('load_store', { key })
|
||||
const raw = await invoke<unknown>('load_store', { key })
|
||||
if (typeof raw === 'string') {
|
||||
try { return JSON.parse(raw) } catch { return null }
|
||||
}
|
||||
return raw
|
||||
} catch {
|
||||
return null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user