diff options
author | Rafael Marçalo <raroma09@gmail.com> | 2022-11-05 15:07:12 +0000 |
---|---|---|
committer | Rafael Marçalo <raroma09@gmail.com> | 2022-11-05 15:07:12 +0000 |
commit | 79033ac8707408f4f7bc0460a732485c5abeec7d (patch) | |
tree | 41128f81522ab9c4ed9d7d6657b1f20a821d569c /server | |
parent | ba8c332375ebfad4969c6c432fd8ea8d1b7ada82 (diff) |
NSFW Content Filter working and fixed port behavior
Diffstat (limited to 'server')
-rw-r--r-- | server/js/config.js | 3 |
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) |