*Process json after saving to store in active config
This commit is contained in:
parent
30de3530fc
commit
c98b544689
|
@ -176,10 +176,10 @@ export default class Config {
|
||||||
assert(typeof data === "object");
|
assert(typeof data === "object");
|
||||||
assert(!Array.isArray(data));
|
assert(!Array.isArray(data));
|
||||||
|
|
||||||
fs.writeFileSync(
|
const fullPath = Path.join(this.str("configdir"), file);
|
||||||
Path.join(this.str("configdir"), file),
|
|
||||||
JSON.stringify(data)
|
fs.writeFileSync(fullPath, JSON.stringify(data));
|
||||||
);
|
this.openJson(fullPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
public filter(name: string) {
|
public filter(name: string) {
|
||||||
|
|
Loading…
Reference in New Issue