mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-26 01:09:15 +01:00
Rename config to settings
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
export function loadConfig(path: string): Config | null {
|
||||
export function loadSettings(path: string): Settings | null {
|
||||
const item = localStorage.getItem(path);
|
||||
if (!item) {
|
||||
return null;
|
||||
}
|
||||
|
||||
try {
|
||||
return JSON.parse(item) as Config;
|
||||
return JSON.parse(item) as Settings;
|
||||
} catch (e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
export interface Config {
|
||||
export interface Settings {
|
||||
searchUrl: string;
|
||||
searchBar: boolean,
|
||||
}
|
||||
Reference in New Issue
Block a user