experiments in a post-browser web
10
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(cmd): migrate background.js to strict settings.get/set(key) shape (Cat 2)

+3 -3
+3 -3
app/cmd/background.js
··· 47 47 * Load settings from datastore 48 48 */ 49 49 const loadSettings = async () => { 50 - const result = await api.settings.get(); 50 + const result = await api.settings.get('prefs'); 51 51 if (result.success && result.data) { 52 52 return { 53 - prefs: result.data.prefs || defaults.prefs 53 + prefs: result.data || defaults.prefs 54 54 }; 55 55 } 56 56 return { prefs: defaults.prefs }; ··· 60 60 * Save settings to datastore 61 61 */ 62 62 const saveSettings = async (settings) => { 63 - const result = await api.settings.set(settings); 63 + const result = await api.settings.set('prefs', settings.prefs); 64 64 if (!result.success) { 65 65 log.error('ext:cmd', 'Failed to save settings:', result.error); 66 66 }