Fixed stepGoal json path in clkinfo

master
Gabriele Monaco 2023-01-19 21:35:57 +01:00
parent 020919bfd7
commit 605916ae0a
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ let storage = require("Storage");
let stepGoal = undefined; let stepGoal = undefined;
// Load step goal from health app and pedometer widget // Load step goal from health app and pedometer widget
let d = storage.readJSON("health.json", true) || {}; let d = storage.readJSON("health.json", true) || {};
stepGoal = d != undefined && d.settings != undefined ? d.settings.stepGoal : undefined; stepGoal = d.stepGoal;
if (stepGoal == undefined) { if (stepGoal == undefined) {
d = storage.readJSON("wpedom.json", true) || {}; d = storage.readJSON("wpedom.json", true) || {};
stepGoal = d != undefined && d.settings != undefined ? d.settings.goal : 10000; stepGoal = d != undefined && d.settings != undefined ? d.settings.goal : 10000;