Rename config to settings

This commit is contained in:
Thomas "ajnart" Camlong
2022-04-30 21:34:28 +02:00
parent 13539fb74b
commit 61df004ace

View File

@@ -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,
}