Standardize DB interfaces with dependency tracking comments and clean up legacy location.reload() arguments

This commit is contained in:
Scott Idem
2026-02-04 18:05:34 -05:00
parent db34da66dc
commit 46c30590ed
6 changed files with 52 additions and 7 deletions

View File

@@ -974,7 +974,7 @@
title="Reload and clear the page cache"
onclick={() => {
clear_idb();
window.location.reload(true);
window.location.reload();
}}
>
<!-- <span class="fas fa-sync mx-1"></span> -->

View File

@@ -70,7 +70,7 @@
<button
type="button"
onclick={() => {
window.location.reload(true);
window.location.reload();
}}
class="btn btn-sm m-1 preset-tonal-surface hover:variant-outline-warning text-error-300 hover:text-error-800 transition-all"
title="Reload page to clear some caches and check for updates"
@@ -103,7 +103,7 @@
alert(
'Local and Session Storage cleared. The page should now refresh on its own.'
);
window.location.reload(true);
window.location.reload();
}}
class="btn btn-sm m-1 p-1 preset-tonal-surface hover:variant-outline-warning text-error-300 hover:text-error-800 transition-all"
title="Clear IDB, localStorage, and sessionStorage and then reload to clear the page cache"