Sort of preventative bug fix early in page load
This commit is contained in:
@@ -706,6 +706,8 @@ $effect(() => {
|
|||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{#if $ae_loc?.site_google_tracking_id && $ae_loc?.site_google_tracking_id.length > 0}
|
{#if $ae_loc?.site_google_tracking_id && $ae_loc?.site_google_tracking_id.length > 0}
|
||||||
<Analytics bind:site_google_tracking_id={$ae_loc.site_google_tracking_id} />
|
<Analytics bind:site_google_tracking_id={$ae_loc.site_google_tracking_id} />
|
||||||
{/if}
|
{/if}
|
||||||
@@ -940,9 +942,39 @@ $effect(() => {
|
|||||||
Page data is loading...
|
Page data is loading...
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
<span class:hidden={browser}>
|
||||||
|
<span>
|
||||||
|
Loading...
|
||||||
|
</span>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
onclick={() => {
|
||||||
|
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"
|
||||||
|
>
|
||||||
|
<span class="fas fa-sync mx-1"></span>
|
||||||
|
<span>
|
||||||
|
Clear Cache and Reload
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
|
</span>
|
||||||
{#if (browser) }
|
{#if (browser) }
|
||||||
|
|
||||||
<!-- Always show if Trusted access or higher. Do not show if in iframe mode. -->
|
<!-- Always show if Trusted access or higher. Do not show if in iframe mode. -->
|
||||||
{#if !$ae_loc?.iframe || $ae_loc?.trusted_access}
|
{#if !$ae_loc?.iframe || $ae_loc?.trusted_access}
|
||||||
<E_app_sys_menu
|
<E_app_sys_menu
|
||||||
@@ -954,7 +986,7 @@ $effect(() => {
|
|||||||
<!-- The app debug menu -->
|
<!-- The app debug menu -->
|
||||||
<E_app_debug_menu
|
<E_app_debug_menu
|
||||||
hide={$ae_loc.debug_menu.hide}
|
hide={$ae_loc.debug_menu.hide}
|
||||||
expand={$ae_loc.debug_menu.expand}
|
bind:expand={$ae_loc.debug_menu.expandaa}
|
||||||
/>
|
/>
|
||||||
{:else}
|
{:else}
|
||||||
<!-- Nothing to show -->
|
<!-- Nothing to show -->
|
||||||
@@ -964,7 +996,7 @@ $effect(() => {
|
|||||||
<div class="flex flex-col items-center justify-center max-w-lg mx-auto space-y-6 border border-red-500 rounded-lg p-4 bg-green-50 dark:bg-green-900 m-8">
|
<div class="flex flex-col items-center justify-center max-w-lg mx-auto space-y-6 border border-red-500 rounded-lg p-4 bg-green-50 dark:bg-green-900 m-8">
|
||||||
<div>
|
<div>
|
||||||
<span class="fas fa-spinner fa-spin mx-1"></span>
|
<span class="fas fa-spinner fa-spin mx-1"></span>
|
||||||
Loading...
|
Layout loading...
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
|
|||||||
Reference in New Issue
Block a user