From db0ff07d87ad2ea74d8962ca61c47fe1ba7a5dcb Mon Sep 17 00:00:00 2001 From: MinusGix Date: Sat, 27 Apr 2019 17:21:05 -0500 Subject: [PATCH] Update ConfigManager.js --- server/src/serverLib/ConfigManager.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;