diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 48b389f4..7a947b00 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -706,6 +706,8 @@ $effect(() => { + + {#if $ae_loc?.site_google_tracking_id && $ae_loc?.site_google_tracking_id.length > 0} {/if} @@ -940,9 +942,39 @@ $effect(() => { Page data is loading... + {/if} + + + Loading... + + { + console.log('Reloading page...'); + // Clear the IndexedDB + clear_idb(); + + // Clear localStorage and sessionStorage + clear_local(); + // clear_sess(); + + alert('IDB, Local, and Session Storage cleared. The page should now refresh on its own.'); + + window.location.reload(); + }} + class="btn btn-sm m-1 preset-filled-warning-200-800 preset-outlined-error-600-400 hover:preset-tonal-error text-error-700 hover:text-error-900 transition-all text-wrap" + title="Reload and clear the page cache" + > + + + Clear Cache and Reload + + + {#if (browser) } + {#if !$ae_loc?.iframe || $ae_loc?.trusted_access} { {:else} @@ -964,7 +996,7 @@ $effect(() => { - Loading... + Layout loading...