sched: interface.html reloads watch to apply alarms

pull/2782/head
Rob Pilling 2023-05-29 13:58:06 +01:00
parent bd416eb0df
commit 64a8f50b76
1 changed files with 3 additions and 1 deletions

View File

@ -88,7 +88,9 @@ function eventToAlarm(event, offsetMs) {
function upload() {
Util.showModal("Saving...");
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
});
});
}