zzz / frontend /src /utils /storage.tsx
ar08's picture
Upload 1040 files
246d201 verified
raw
history blame contribute delete
289 Bytes
const getCachedConfig = (): { [key: string]: string } => {
const config = localStorage.getItem("ALL_SETTINGS");
if (config === null || config === undefined) return {};
try {
return JSON.parse(config);
} catch (e) {
return {};
}
};
export { getCachedConfig };