sched: interface.html reloads watch to apply alarms
parent
bd416eb0df
commit
64a8f50b76
|
|
@ -88,7 +88,9 @@ 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), () => {
|
||||||
location.reload(); // reload so we see current data
|
Puck.write(`\x10load()\n`, () => { // reload watch to load alarms
|
||||||
|
location.reload(); // reload so we see current data
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue