sched: reload after uploading sched.json

pull/2782/head
Rob Pilling 2023-06-07 10:10:10 +01:00
parent aa8ecc7e2c
commit 4a48511fe9
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ function eventToAlarm(event, offsetMs) {
function upload() {
Util.showModal("Saving...");
Util.writeStorage("sched.json", JSON.stringify(alarms), () => {
Puck.write(`\x10E.showMessage("Hold button to\\nreload alarms")\n`, () => {
Puck.write(`\x10require("sched").reload();\n`, () => {
location.reload(); // reload so we see current data
});
});