1
0
Fork 0
forked from svrjs/svrjs

SVR.JS now saves configuration files with trailing newlines.

This commit is contained in:
Dorian Niemiec 2023-12-03 12:02:49 +01:00
parent 4c9cd87a94
commit 024d6cc2d3

2
svr.js
View file

@ -5520,7 +5520,7 @@ function saveConfig() {
if (configJSONobj.exposeModsInErrorPages === undefined) configJSONobj.exposeModsInErrorPages = true;
if (configJSONobj.disableTrailingSlashRedirects === undefined) configJSONobj.disableTrailingSlashRedirects = false;
var configString = JSON.stringify(configJSONobj, null, 2);
var configString = JSON.stringify(configJSONobj, null, 2) + "\n";
fs.writeFileSync(__dirname + "/config.json", configString);
break;
} catch (err) {