sched: don't force reload on alarm save
parent
1749b4c2f1
commit
4616d533b4
|
|
@ -88,10 +88,8 @@ function eventToAlarm(event, offsetMs) {
|
||||||
function upload() {
|
function upload() {
|
||||||
Util.showModal("Saving...");
|
Util.showModal("Saving...");
|
||||||
Util.writeStorage("sched.json", JSON.stringify(alarms), () => {
|
Util.writeStorage("sched.json", JSON.stringify(alarms), () => {
|
||||||
Puck.write(`\x10load()\n`, () => { // reload watch to load alarms
|
Puck.write(`\x10E.showMessage("Hold button to\\nreload alarms")\n`, () => {
|
||||||
setTimeout(() => {
|
location.reload(); // reload so we see current data
|
||||||
location.reload(); // reload so we see current data
|
|
||||||
}, 500);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue