sched: interface.html reloads watch to apply alarms
parent
bd416eb0df
commit
64a8f50b76
|
|
@ -88,8 +88,10 @@ function eventToAlarm(event, offsetMs) {
|
|||
function upload() {
|
||||
Util.showModal("Saving...");
|
||||
Util.writeStorage("sched.json", JSON.stringify(alarms), () => {
|
||||
Puck.write(`\x10load()\n`, () => { // reload watch to load alarms
|
||||
location.reload(); // reload so we see current data
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function renderAlarm(alarm, exists) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue