config: log when updated
This commit is contained in:
parent
e9eba2e291
commit
38197e7ab5
1 changed files with 2 additions and 1 deletions
|
|
@ -85,7 +85,8 @@ const updateSection = (from: { [k: string]: any }, to: { [k: string]: any }, pat
|
|||
|
||||
export const updateConfig = async () => {
|
||||
updateSection(deepMerge(defaults, JSON.parse(await readFileAsync(CONFIG))), config);
|
||||
loadStyleAsync().catch(console.error);
|
||||
await loadStyleAsync();
|
||||
console.log("[LOG] Config updated");
|
||||
};
|
||||
|
||||
export const initConfig = async () => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue