diff options
author | marzavec <admin@marzavec.com> | 2019-04-28 00:38:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-28 00:38:47 +0200 |
commit | 9a230deaf09d16c872d50b872190fcc546fae1c8 (patch) | |
tree | 36fb205079ba62fd47691dc96e50c8e7c74310f9 | |
parent | Merge pull request #62 from MinusGix/patch-2 (diff) | |
parent | Update ConfigManager.js (diff) | |
download | hackchat-9a230deaf09d16c872d50b872190fcc546fae1c8.tar.gz hackchat-9a230deaf09d16c872d50b872190fcc546fae1c8.zip |
Merge pull request #63 from MinusGix/patch-4
When saving Config, format it in a more human readable manner.
Diffstat (limited to '')
-rw-r--r-- | server/src/serverLib/ConfigManager.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server/src/serverLib/ConfigManager.js b/server/src/serverLib/ConfigManager.js index 36af1ec..e29a0e7 100644 --- a/server/src/serverLib/ConfigManager.js +++ b/server/src/serverLib/ConfigManager.js @@ -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; |