mirror of
https://github.com/hack-chat/main.git
synced 2024-03-22 13:20:33 +08:00
Merge pull request #63 from MinusGix/patch-4
When saving Config, format it in a more human readable manner.
This commit is contained in:
commit
9a230deaf0
|
@ -62,7 +62,10 @@ class ConfigManager {
|
|||
const backupPath = await this.backup();
|
||||
|
||||
try {
|
||||
fse.writeJSONSync(this.configPath, this.config);
|
||||
fse.writeJSONSync(this.configPath, this.config, {
|
||||
// Indent with two spaces
|
||||
spaces: 2,
|
||||
});
|
||||
fse.removeSync(backupPath);
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user