Fix not loading old configs from correct dir

This commit is contained in:
NotThorny
2025-11-14 02:45:24 -07:00
parent 0c910b7317
commit fafec01fe3

View File

@@ -182,7 +182,7 @@ async function readConfigFile() {
const cfg = <Configuration>JSON.parse(raw)
// Switch file to config-specified profile
let pf = cfg['profile']
if (pf != 'default') {
if (pf && pf != 'default') {
const pff = pf
pf = 'profiles/' + pff + '.json'
} else {