aboutsummaryrefslogtreecommitdiffstats
path: root/server/src
diff options
context:
space:
mode:
authorMinusGix <MinusGix@gmail.com>2019-04-28 00:21:05 +0200
committerGitHub <noreply@github.com>2019-04-28 00:21:05 +0200
commitdb0ff07d87ad2ea74d8962ca61c47fe1ba7a5dcb (patch)
tree36fb205079ba62fd47691dc96e50c8e7c74310f9 /server/src
parentMerge pull request #62 from MinusGix/patch-2 (diff)
downloadhackchat-db0ff07d87ad2ea74d8962ca61c47fe1ba7a5dcb.tar.gz
hackchat-db0ff07d87ad2ea74d8962ca61c47fe1ba7a5dcb.zip
Update ConfigManager.js
Diffstat (limited to '')
-rw-r--r--server/src/serverLib/ConfigManager.js5
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;