gabriel / musehub public
commit-detail.ts typescript
9 lines 319 B
Raw
sha256:c3910cc561368d2b40576c1fbb0841b5d3abefd0a65c96c85114a7238222c77c fix: root-of-push snapshots were never hash-verified before… Sonnet 5 patch 5 days ago
1 export function initCommitDetail(): void {
2 const btn = document.querySelector<HTMLButtonElement>('.cmt-copy-btn');
3 const shaEl = document.getElementById('cmt-sha');
4 if (!btn || !shaEl) return;
5 const sha = shaEl.title;
6 btn.addEventListener('click', () => {
7 void navigator.clipboard.writeText(sha);
8 });
9 }
File History 1 commit
sha256:c3910cc561368d2b40576c1fbb0841b5d3abefd0a65c96c85114a7238222c77c fix: root-of-push snapshots were never hash-verified before… Sonnet 5 patch 5 days ago