Add configurable vibe presets

This commit is contained in:
Andras Schmelczer 2026-05-24 10:57:47 +01:00
commit f8294934fd

View file

@ -0,0 +1,18 @@
export const readBrowserStorage = (key: string): string | null => {
try {
return localStorage.getItem(key);
} catch {
return null;
}
};
export const writeBrowserStorage = (key: string, value: string): void => {
try {
localStorage.setItem(key, value);
} catch (error) {
console.warn(
'Storage can be unavailable in private browsing or embedded contexts.',
error
);
}
};