mirror of https://github.com/espruino/BangleApps
sched: wait before reloading to avoid `load()` output
parent
81e810bcd7
commit
f8d1de16ce
|
@ -89,7 +89,9 @@ 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
|
||||
setTimeout(() => {
|
||||
location.reload(); // reload so we see current data
|
||||
}, 500);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue