More work on making the Journal's module actually useful
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user