Havre: the reload link reloads, bypassing the cache

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VAvUH72XsdCitHdh3t7mjr
This commit is contained in:
teahubxyzandClaude Fable 5.1 committed 2026-10-20 03:43:40 +00:00
1 parent f34467232f
commit 0f8d120d7e
1 file changed
+3
+3
View File
@@ -15,5 +15,8 @@
apply();
var b = document.getElementById("theme");
if (b) b.addEventListener("click", function () { try { localStorage.setItem(K, dark() ? "light" : "dark"); } catch (e) { /* this time only */ } apply(); });
// installed as an app there's no address bar and no pull to refresh: this is the way to the latest Havre
var r = document.getElementById("reload");
if (r) r.addEventListener("click", function () { r.textContent = "reloading…"; location.reload(); });
});
})();