Always start with default features

This commit is contained in:
Johannes Zellner
2025-06-10 11:08:17 +02:00
parent 2e4bc5e218
commit 23f7c1522e
+2 -1
View File
@@ -68,9 +68,10 @@ let gFeatures = null;
function getFeatures() {
if (gFeatures === null) {
gFeatures = Object.assign({}, DEFAULT_FEATURES);
const tmp = safe.JSON.parse(safe.fs.readFileSync(paths.FEATURES_INFO_FILE, 'utf8'));
if (!tmp) {
gFeatures = Object.assign({}, DEFAULT_FEATURES);
return DEFAULT_FEATURES;
}