Be explicit about the encoding of JSON config

This commit is contained in:
D. Berge
2020-08-25 08:47:04 +02:00
parent 3ce6f1dce6
commit 9fa76df446

View File

@@ -36,7 +36,7 @@ try {
}
} else {
const text = fs.readFileSync(cfgPath);
const text = fs.readFileSync(cfgPath, 'utf8');
if (text) {
config = JSON.parse(text);
}