Wrapping up for the day. It is Friday. Things mostly work.

This commit is contained in:
Scott Idem
2024-08-16 18:34:54 -04:00
parent 68727d24cf
commit 85138e7b44
4 changed files with 16 additions and 16 deletions

View File

@@ -123,7 +123,7 @@ onMount(() => {
{#if $ae_loc.ver != '2024-08-07_1504' || $ae_loc.ver_idb != '2024-08-07_1505'}
{#if $ae_loc.ver != '2024-08-16_1821' || $ae_loc.ver_idb != '2024-08-16_1826'}
<div class="flex flex-col items-center justify-center bg-error-100 text-error-800 p-4 rounded-lg shadow-lg space-y-2 my-4 w-full">
@@ -137,12 +137,12 @@ onMount(() => {
on:click={() => {
// This is not a very efficient way to do this, but it works for now.
// Do this first even if the localStorage will be cleared.
if ($ae_loc.ver_idb != '2024-08-07_1505') {
if ($ae_loc.ver_idb != '2024-08-16_1826') {
// Yep... this needs to be done differently.
$ae_loc.ver_idb = '2024-08-07_1505';
$ae_loc.ver_idb = '2024-08-16_1826';
}
if ($ae_loc.ver != '2024-08-07_1504') {
if ($ae_loc.ver != '2024-08-16_1821') {
alert('You will need to sign in again.')
// Clear the local and session storage. Clearing the localStorage will force it to be re-created.
@@ -154,6 +154,10 @@ onMount(() => {
indexedDB.deleteDatabase('ae_core_db');
indexedDB.deleteDatabase('ae_events_db');
// This does not seem to work fast enough or something?
goto('/', {invalidateAll: true});
// The page does usually seem to reload correctly?
window.location.reload(true); // true only works with Firefox
// alert('Local and Session Storage cleared and Indexed DBs deleted. You will probably want to refresh the page.');
}}