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 VibePreset } from './config';
|
||||
import { readBrowserStorage } from './utils/browser-storage';
|
||||
|
||||
export type { GardenVibeSettings, VibePreset } from './config';
|
||||
|
||||
|
|
@ -14,7 +15,7 @@ export const hexToRgb = (hex: string): [number, number, number] => {
|
|||
};
|
||||
|
||||
export const getInitialVibe = (): VibePreset => {
|
||||
const id = localStorage.getItem(appConfig.storage.vibeKey);
|
||||
const id = readBrowserStorage(appConfig.storage.vibeKey);
|
||||
return (
|
||||
VIBE_PRESETS.find((vibe) => vibe.id === id) ??
|
||||
VIBE_PRESETS.find((vibe) => vibe.id === appConfig.vibes.defaultVibeId) ??
|
||||
|
|
|
|||
Loading…
Reference in a new issue