forked from FOSS/BangleApps
sched: reload after uploading sched.json
parent
aa8ecc7e2c
commit
4a48511fe9
|
@ -88,7 +88,7 @@ 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(`\x10E.showMessage("Hold button to\\nreload alarms")\n`, () => {
|
Puck.write(`\x10require("sched").reload();\n`, () => {
|
||||||
location.reload(); // reload so we see current data
|
location.reload(); // reload so we see current data
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue