use COMMIT_HASH_PLACEHOLDER for server-side hash injection, remove version.json and local hooks

This commit is contained in:
2026-07-05 17:12:54 -04:00
parent c9d665f929
commit 3d2dbf1c2a
2 changed files with 1 additions and 9 deletions

View File

@@ -335,7 +335,7 @@ footer a{color:var(--accent);text-decoration:none}
<div class="wrap">
<span>Bitcoin After Life — Will Executor List</span>
<a href="mailto:welist@bitcoin-after.life">welist@bitcoin-after.life</a>
<a class="mono" id="commit-link" href="#"></a>
<a class="mono" id="commit-link" href="https://bitcoin-after.life/gitea/bitcoinafterlife/bal-welist-website/commit/COMMIT_HASH_PLACEHOLDER">COMMIT_HASH_PLACEHOLDER</a>
</div>
</footer>
@@ -497,13 +497,6 @@ document.getElementById('submit').addEventListener('click', async () => {
(function init() {
const blob = new Blob([JSON.stringify(allServers, null, 2)], { type: 'application/json' });
document.getElementById('download').href = URL.createObjectURL(blob);
fetch('/version.json')
.then(r => r.json())
.then(v => {
document.getElementById('commit-link').href = 'https://bitcoin-after.life/gitea/bitcoinafterlife/bal-welist-website/commit/' + v.commit;
document.getElementById('commit-link').textContent = v.commit;
})
.catch(() => {});
fetchData();
})();
</script>