Always start with default features
This commit is contained in:
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user