mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-29 10:49:14 +01:00
Delete settings file
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
import { Settings } from './types';
|
||||
|
||||
export function loadSettings(path: string): Settings | null {
|
||||
const item = localStorage.getItem(path);
|
||||
if (!item) {
|
||||
return null;
|
||||
}
|
||||
|
||||
try {
|
||||
return JSON.parse(item) as Settings;
|
||||
} catch (e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user