More work on making the Journal's module actually useful

This commit is contained in:
Scott Idem
2025-04-01 17:40:33 -04:00
parent f423345e42
commit d393ed2c7a
5 changed files with 245 additions and 50 deletions

View File

@@ -81,6 +81,11 @@ if (browser) {
<button
onclick={() => {
// Confirm before clearing
if (!confirm("Are you sure you want to clear all app data and settings? This will reload the page.")) {
return;
}
console.log("Clearing local and session storage, and reloading the page...");
// Clear the local and session storage. Clearing the localStorage will force it to be re-created.
localStorage.clear();