summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/js/config.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/js/config.js b/server/js/config.js
index f688bb7..a184515 100644
--- a/server/js/config.js
+++ b/server/js/config.js
@@ -6,6 +6,7 @@ const path = require('path');
const { ensureFolder, envPaths } = require('./paths');
// Handling Variables
+const indentation = '\t';
const configFolder = ensureFolder(path.join(envPaths.CONFIG, 'sneedbay'));
const defaultConfigPath = path.join(configFolder, 'config.json');
const defaultConfig = {
@@ -28,7 +29,7 @@ function createConfig(customConfig, configPath)
try
{
- fs.writeFileSync(path, JSON.stringify(config), 'utf-8');
+ fs.writeFileSync(path, JSON.stringify(config, null, indentation), 'utf-8');
}
catch (err)