*Process json after saving to store in active config

This commit is contained in:
Derrick Hammer 2022-09-21 16:37:56 -04:00
parent 30de3530fc
commit c98b544689
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 4 deletions

View File

@ -176,10 +176,10 @@ export default class Config {
assert(typeof data === "object");
assert(!Array.isArray(data));
fs.writeFileSync(
Path.join(this.str("configdir"), file),
JSON.stringify(data)
);
const fullPath = Path.join(this.str("configdir"), file);
fs.writeFileSync(fullPath, JSON.stringify(data));
this.openJson(fullPath);
}
public filter(name: string) {