Open mrwweb opened 8 months ago
How will I determine when a plan autosave is stale?
new Date({<span class="short">}.textContent).valueOf()
to get the UTC and compare that to the current date/time in America/Chicago. If it's more than a day, discard?
Building on #20, the next step is to save a copy of the plan to
localStorage
during editing so that it can be restored if lost.Rough first thought of how to do this:
localStorage
every ~15 secondsQuestion: Do I ever discard the saved copy? Maybe there's a "dismiss" x button that can delete the message by hiding the notice. Not totally sure.