Fixed stepGoal json path in clkinfo
parent
020919bfd7
commit
605916ae0a
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue