forked from bitcoinafterlife/bal-welist-website
use COMMIT_HASH_PLACEHOLDER for server-side hash injection, remove version.json and local hooks
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user