mirror of
https://github.com/hack-chat/main.git
synced 2024-03-22 13:20:33 +08:00
Update ConfigManager.js
This commit is contained in:
parent
6643bb5253
commit
db0ff07d87
|
@ -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