diff --git a/tools/config.ts b/tools/settings.ts similarity index 56% rename from tools/config.ts rename to tools/settings.ts index 14eb1ec06..6f0c8a955 100644 --- a/tools/config.ts +++ b/tools/settings.ts @@ -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, } \ No newline at end of file