*Remove the need to add a file extension since all files should be JSON

This commit is contained in:
Derrick Hammer 2022-12-21 15:08:51 -05:00
parent e11e94c61c
commit 618ab73d14
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ export default class Config {
assert(!Array.isArray(data));
const configDir = this.str("configdir");
const fullPath = Path.join(configDir, file);
const fullPath = Path.join(configDir, `${file}.json`);
if (!fs.existsSync(configDir)) {
fs.mkdirSync(configDir, { recursive: true });