This commit is contained in:
parent
39b0160064
commit
2347ecd201
71 changed files with 3779 additions and 1586 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { appConfig, type GardenRuntimeSettings } from './config';
|
||||
import { writeBrowserStorage } from './utils/browser-storage';
|
||||
import { getInitialVibe, VIBE_PRESETS, type VibePreset } from './vibes';
|
||||
|
||||
const buildInitialValues = (vibe: VibePreset): GardenRuntimeSettings => ({
|
||||
|
|
@ -32,7 +33,7 @@ export const applyVibeSettings = (vibeId: string) => {
|
|||
selectedColorIndex: Math.min(settings.selectedColorIndex, vibe.colors.length - 1),
|
||||
});
|
||||
|
||||
localStorage.setItem(appConfig.storage.vibeKey, vibe.id);
|
||||
writeBrowserStorage(appConfig.storage.vibeKey, vibe.id);
|
||||
|
||||
return activeVibe;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue